john_6767 Posted November 3, 2006 Share Posted November 3, 2006 ssl won't load page with $_GET paramater coming from non ssl page..is this normal? how do i fix it?cheers Link to comment https://forums.phpfreaks.com/topic/26009-ssl-wont-load-page-with-_get-paramater-coming-from-non-ssl-page/ Share on other sites More sharing options...
doni49 Posted November 3, 2006 Share Posted November 3, 2006 more info pleaseI'll do what I can--IF I can. Link to comment https://forums.phpfreaks.com/topic/26009-ssl-wont-load-page-with-_get-paramater-coming-from-non-ssl-page/#findComment-118892 Share on other sites More sharing options...
john_6767 Posted November 3, 2006 Author Share Posted November 3, 2006 basically i have a page i just put over to ssl, and now this page won't work.. the page that links to it is not on ssl and it is passing a url parameter to the ssl page.. i assume that the the ssl page isn't working because it doesn't think the passing of a url from a non secure page is safe..??i have put a series of echos on the page to see where it breaks and have found that it breaks around here[code]$colname_rsOrderDetails = "-1";if (isset($_GET['orderID'])) { $colname_rsOrderDetails = (get_magic_quotes_gpc()) ? $_GET['orderID'] : addslashes($_GET['orderID']);}mysql_select_db($database_connN, $conn);$query_rsOrderDetails = sprintf("SELECT * FROM orders WHERE orderID = %s", $colname_rsOrderDetails);$rsOrderDetails = mysql_query($query_rsOrderDetails, $conn) or die(mysql_error());$row_rsOrderDetails = mysql_fetch_assoc($rsOrderDetails);$totalRows_rsOrderDetails = mysql_num_rows($rsOrderDetails);[/code]edit: it doesn't load past here.. but worked fine on the non ssl setup Link to comment https://forums.phpfreaks.com/topic/26009-ssl-wont-load-page-with-_get-paramater-coming-from-non-ssl-page/#findComment-118895 Share on other sites More sharing options...
doni49 Posted November 3, 2006 Share Posted November 3, 2006 So when you go from the non-SSL page to the URL page, do you still see the variables in the URL?This WAS working and then you switched it over to SSL and there were NO other changes? I can't say whether or not going from non-SSL to SSL will cause a problem like this, but I don't see why it would. Link to comment https://forums.phpfreaks.com/topic/26009-ssl-wont-load-page-with-_get-paramater-coming-from-non-ssl-page/#findComment-118897 Share on other sites More sharing options...
john_6767 Posted November 3, 2006 Author Share Posted November 3, 2006 yep the variables are in the url.. Link to comment https://forums.phpfreaks.com/topic/26009-ssl-wont-load-page-with-_get-paramater-coming-from-non-ssl-page/#findComment-118909 Share on other sites More sharing options...
john_6767 Posted November 3, 2006 Author Share Posted November 3, 2006 just found out its not the get.. its something below it in that code.. Link to comment https://forums.phpfreaks.com/topic/26009-ssl-wont-load-page-with-_get-paramater-coming-from-non-ssl-page/#findComment-118919 Share on other sites More sharing options...
john_6767 Posted November 3, 2006 Author Share Posted November 3, 2006 ok, the prob is in this line i think..i get echos displaying on screen up until this one..[code]$rsOrderDetails = mysql_query($query_rsOrderDetails, $conn) or die(mysql_error());[/code] Link to comment https://forums.phpfreaks.com/topic/26009-ssl-wont-load-page-with-_get-paramater-coming-from-non-ssl-page/#findComment-118924 Share on other sites More sharing options...
doni49 Posted November 3, 2006 Share Posted November 3, 2006 Try putting this above that line and see what the values are.echo "<br />Query: " . $query;echo "<br />Details: " . $rsOrderDetails;echo "<br />Conn: " . $conn; Link to comment https://forums.phpfreaks.com/topic/26009-ssl-wont-load-page-with-_get-paramater-coming-from-non-ssl-page/#findComment-118927 Share on other sites More sharing options...
john_6767 Posted November 3, 2006 Author Share Posted November 3, 2006 ok will try that now and let u know, in the mean time,is there something different that has to be done when including files on a ssl page?i just worked out that the include file for the connections doesn't seem to be working but works fine if i put the code in the page..i am using the following code to include the connections file, [code=php:0]require_once('https://www.mydomain.com/Connections/conn.php');[/code]and here is the code in the file[code=php:0]<?php# FileName="Connection_php_mysql.htm"# Type="MYSQL"# HTTP="true"$hostname_conn = "203.00.00.000";$database_conn = "databasename";$username_conn = "UserName";$password_conn = "Password";$conn = mysql_pconnect($hostname_connN, $username_conn, $password_conn) or trigger_error(mysql_error(),E_USER_ERROR); ?>[/code] Link to comment https://forums.phpfreaks.com/topic/26009-ssl-wont-load-page-with-_get-paramater-coming-from-non-ssl-page/#findComment-118936 Share on other sites More sharing options...
john_6767 Posted November 3, 2006 Author Share Posted November 3, 2006 ok, i tried your tip and the variables all came back with no values.. Link to comment https://forums.phpfreaks.com/topic/26009-ssl-wont-load-page-with-_get-paramater-coming-from-non-ssl-page/#findComment-118937 Share on other sites More sharing options...
john_6767 Posted November 3, 2006 Author Share Posted November 3, 2006 actually i got that wrong, the only one not set is connection.. which leads me to the include ([code=php:0]require_once('https://www.mydomain.com/Connections/conn.php');[/code]) .. if i put the include code on the page it works.. Link to comment https://forums.phpfreaks.com/topic/26009-ssl-wont-load-page-with-_get-paramater-coming-from-non-ssl-page/#findComment-118939 Share on other sites More sharing options...
john_6767 Posted November 3, 2006 Author Share Posted November 3, 2006 ok, thats the problem.. the files work if i put the code on the page, but i need to include them and they don't work by including them using:[code=php:0] require_once('https://www.mydomain.com/Connections/conn.php');[/code]the files are in the locations i am referencing.. Link to comment https://forums.phpfreaks.com/topic/26009-ssl-wont-load-page-with-_get-paramater-coming-from-non-ssl-page/#findComment-118943 Share on other sites More sharing options...
john_6767 Posted November 3, 2006 Author Share Posted November 3, 2006 ok, well i got it going, i re made the recordset in dreamweaver and it started to work.. mm.. anyway thanks for your help..also i found that sometimes [code=php:0]require_once('https://www.mydomain.com/Connections/conn.php');[/code] worked and sometimes [code=php:0]require_once(../Connections/conn.php');[/code] worked.. assuming the file your working on is in https://www.mydomain.com/foldercan anyone explain this so i know for next time? Link to comment https://forums.phpfreaks.com/topic/26009-ssl-wont-load-page-with-_get-paramater-coming-from-non-ssl-page/#findComment-118949 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.