RE: [PHP] Html forms to php scripts
I have registered_globals on so this shouldn't matter, but: echo $_POST['ttt']; returns the same problem as simple echo $ttt; Here is my phpinfo(); http://psyche.govst.edu/test.php I'm in the process of upgrading to apache 2.0.45 and php 4.3.1, so maybe that will fix things as I have heard that 4.2.2 doesn't like apache2. Tim Van Zee ITS Network Specialist Governors State University -Original Message- From: Tim Burden [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 11:07 AM To: VanZee, Timothy Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Html forms to php scripts What version of Apache are you using? Can you point us to a phpinfo() file? - Original Message - From: Timothy Vanzee [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 11:31 AM Subject: FW: [PHP] Html forms to php scripts I have the following issue between my html forms and php scripts. Html file (input.html) looks like this: form action=input.php method=post input type=text name=ttt pinput type=submit name=submit value=Submit/p /form Php file (input.php) looks like this: ? echo $ttt; ? I can input text (i.e. superman) and then click submit. The resulting php page returns: supermanttt=superman It seems to me that it must be something in the php.ini file that needs to be changed, but I can't identify what exactly. Any help would be appreciated. php 4.2.2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Html forms to php scripts
Here are the results: Array ( [ttt] = javattt=java ) Array ( [ttt] = javattt=java ) Tim Van Zee ITS Network Specialist Governors State University [ snip ] Would be curiuos to see the the results of : echo pre; print_r($_REQUEST); echo/pre; echo pre; print_r($_POST); echo/pre; That might shed some light as to what is being sent and what isn't. -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Html forms to php scripts
I though we already covered that this was an PHP / Apache 2 bug?? Stop using Apache 2 with PHP. ---John Holmes... - Original Message - From: VanZee, Timothy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 04, 2003 11:01 AM Subject: RE: [PHP] Html forms to php scripts Here are the results: Array ( [ttt] = javattt=java ) Array ( [ttt] = javattt=java ) Tim Van Zee ITS Network Specialist Governors State University [ snip ] Would be curiuos to see the the results of : echo pre; print_r($_REQUEST); echo/pre; echo pre; print_r($_POST); echo/pre; That might shed some light as to what is being sent and what isn't. -- Burhan Khalid phplist[at]meidomus[dot]com -- 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] Html forms to php scripts
-Original Message- From: VanZee, Timothy [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 17:31 Repost because no one replied originally. Are there any other lists that anyone knows of for php that could be more helpful? I'm quite disappointed in this one because I thought this was a fairly easy question for those who have been working with php for a while. I have the following issue between my html forms and php scripts. Html file (input.html) looks like this: form action=input.php method=post input type=text name=ttt pinput type=submit name=submit value=Submit/p /form Php file (input.php) looks like this: ? echo $ttt; ? I can input text (i.e. superman) and then click submit. The resulting php page returns: supermanttt=superman It seems to me that it must be something in the php.ini file that needs to be changed, but I can't identify what exactly. Any help would be appreciated. php 4.2.2 I'm pretty sure that this is an Apache 2 problem that's fixed in a later version of PHP and/or Apache. Try searching the bug database for more details. 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] Html forms to php scripts
What version of Apache are you using? Can you point us to a phpinfo() file? - Original Message - From: Timothy Vanzee [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 11:31 AM Subject: FW: [PHP] Html forms to php scripts Repost because no one replied originally. Are there any other lists that anyone knows of for php that could be more helpful? I'm quite disappointed in this one because I thought this was a fairly easy question for those who have been working with php for a while. I have the following issue between my html forms and php scripts. Html file (input.html) looks like this: form action=input.php method=post input type=text name=ttt pinput type=submit name=submit value=Submit/p /form Php file (input.php) looks like this: ? echo $ttt; ? I can input text (i.e. superman) and then click submit. The resulting php page returns: supermanttt=superman It seems to me that it must be something in the php.ini file that needs to be changed, but I can't identify what exactly. Any help would be appreciated. php 4.2.2 Tim Van Zee ITS Network Specialist Governors State University -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Html forms to php scripts
It's an Apache 2 / PHP bug. I think if you use $_POST['ttt'], you'll get the correct value, but I'm not sure. Try turning register globals off or using a stable version of Apache that works with PHP (the 1.3 series). ---John Holmes... - Original Message - From: VanZee, Timothy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 11:31 AM Subject: FW: [PHP] Html forms to php scripts Repost because no one replied originally. Are there any other lists that anyone knows of for php that could be more helpful? I'm quite disappointed in this one because I thought this was a fairly easy question for those who have been working with php for a while. I have the following issue between my html forms and php scripts. Html file (input.html) looks like this: form action=input.php method=post input type=text name=ttt pinput type=submit name=submit value=Submit/p /form Php file (input.php) looks like this: ? echo $ttt; ? I can input text (i.e. superman) and then click submit. The resulting php page returns: supermanttt=superman It seems to me that it must be something in the php.ini file that needs to be changed, but I can't identify what exactly. Any help would be appreciated. php 4.2.2 Tim Van Zee ITS Network Specialist Governors State University -- 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] Html forms to php scripts
Ford, Mike [LSS] wrote: -Original Message- From: VanZee, Timothy [mailto:[EMAIL PROTECTED] Sent: 02 April 2003 17:31 Repost because no one replied originally. Are there any other lists that anyone knows of for php that could be more helpful? I'm quite disappointed in this one because I thought this was a fairly easy question for those who have been working with php for a while. I have the following issue between my html forms and php scripts. Html file (input.html) looks like this: form action=input.php method=post input type=text name=ttt pinput type=submit name=submit value=Submit/p /form Php file (input.php) looks like this: ? echo $ttt; ? I can input text (i.e. superman) and then click submit. The resulting php page returns: supermanttt=superman It seems to me that it must be something in the php.ini file that needs to be changed, but I can't identify what exactly. Any help would be appreciated. php 4.2.2 registered_globals is off by default in your version of PHP (its in the release notes) so, try replacing your echo statement with echo $_POST['ttt']; and see if that helps. -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php