Re: Will $_GET throw an error? (no problem just doubt)
| From: | Chris Hewitt | Date: | Sat, 03 May 2003 17:35:51 +0000 |
| Subject: | Re: Will $_GET throw an error? (no problem just doubt) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146295@lists.php.net to get a copy of this message | ||
Ryan A wrote:
Hey John, Thanks for replying. I am not getting any errors now that i have turned register globals off via .htaccess....why is that and how can I turn "error reporting" back on? Also another problem tell me if i got this correct, to make my script run without problems with register globals off I have put $order_number = $_GET['order_number']; $total = $_GET['total']; $key = $_GET['key']; $secret_word="blah"; $seller_id=987987; right on top of my script, then when i run my script and am using it like this $compare2c = strtoupper(md5("$secret_word"."$seller_id"."$order_number"."$total")); after the above line i have some print statements, but when i run the script I dont get the print statements...I just get the html *before* i start my "<?php" and I also get the html after my "?>" what do you think is wrong?I'd put in some echo statements to prove that you have the values, e.g.: echo "key=$key"; I assume the page you are coming from is using the GET not POST method? HTH Chris