Re: [PHP] $_POST vars problem
--- Kenneth Brill [EMAIL PROTECTED] wrote: can anyone tell me where the second searchstring=TEST is coming from? I have tried register globals on and off. Can you also show us the HTML for your form on the previous page? The simplest test case that produces this problem would be best. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_POST vars problem
I will try to shortly. The server in question is password protected and has lot of information I don;t need hacked into right now. I'll set up a limited short term account and post everything then. On another note, I have found that if I include (and use) the submit button everything works perfectly, HOWEVER if I just enter data and hit return then it messes up. That make no sence to me but maybe someone out there can put it together. thanks Chris Shiflett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... --- Kenneth Brill [EMAIL PROTECTED] wrote: can anyone tell me where the second searchstring=TEST is coming from? I have tried register globals on and off. Can you also show us the HTML for your form on the previous page? The simplest test case that produces this problem would be best. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_POST vars problem
--- Kenneth Brill [EMAIL PROTECTED] wrote: I will try to shortly. The server in question is password protected and has lot of information I don;t need hacked into right now. I'll set up a limited short term account and post everything then. So you do not have access to the server that has the code you are trying to debug? That seems like a bigger problem. If you can at least test this with a browser, you can use it to view the source. This will reveal the HTML, and you can just show us the relevant parts. Of course, if we notice the problem, it sounds like it is useless anyway, since you cannot access the server to fix anything. Unless I am missing something... Chris On another note, I have found that if I include (and use) the submit button everything works perfectly, HOWEVER if I just enter data and hit return then it messes up. That make no sence to me but maybe someone out there can put it together. thanks Chris Shiflett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... --- Kenneth Brill [EMAIL PROTECTED] wrote: can anyone tell me where the second searchstring=TEST is coming from? I have tried register globals on and off. Can you also show us the HTML for your form on the previous page? The simplest test case that produces this problem would be best. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] $_POST vars problem
-Original Message- From: Kenneth Brill [mailto:[EMAIL PROTECTED]] Sent: 20 January 2003 15:53 I just changed my server to SSL, everything worked before that. now if I have a form with an input box (named searchstring for example) with a value of TEST, when that form is posted (submitted) I get the following: foreach($_POST as $key = $value) { echo [POST]Key: '$key'; Value: '$value'br\n; } will print: Key:'searchstring' ; Value: 'TESTsearchstring=TEST' If you're using Apache 2, I suggeest you browse on over to this bug report: http://bugs.php.net/bug.php?id=18648. (Well, maybe you want to go take a look there anyway, as it's definitely concerning this very behaviour.) Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] $_POST vars problem
On another note, I have found that if I include (and use) the submit button everything works perfectly, HOWEVER if I just enter data and hit return then it messes up. You could try including a hidden submit field like this: input type=hidden name=submit value=1 For name=submit change that to whatever name your normal submit button has and you'll find that a submit is set even if you hit return instead of clicking on the submit button. It may or may not resolve the issues you're seeing but it can help general form processing anyway. CYA, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php