RE: [PHP] [Q]PHP not taking input values from forms
yeah. phpinfo() works, which is how I know for sure that PHP is working fine. It's just not taking inputs. WTF is going? heheI'm going nuts over here. Any other ideas? From: Vail, Warren [EMAIL PROTECTED] To: 'Dan Aloma' [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: RE: [PHP] [Q]PHP not taking input values from forms Date: Fri, 13 Feb 2004 14:40:48 -0700 I'd try to insert a simple echo statement, and figure out why it's not returning anything. try a file named phpinfo.php snip-- ?php phpinfo(); ? snip--- if your web server implementation is correct that should work. good luck, Warren Vail -Original Message- From: Dan Aloma [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 12:38 PM To: Vail, Warren Cc: [EMAIL PROTECTED] Subject: RE: [PHP] [Q]PHP not taking input values from forms when i run that, it doesn't show return anything. I really don't understand what's going on with php. I know it's working fine, it's just not returning anything. Even scripts that I KNOW for a fact should be working (i.e. they work for everyone else), don't work for me. Any other ideas? I REALLY need to get this running, and it's upsetting because I don't get what's going on. TIA. From: Vail, Warren [EMAIL PROTECTED] To: 'Philip Olson' [EMAIL PROTECTED],Dan Aloma [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] [Q]PHP not taking input values from forms Date: Thu, 12 Feb 2004 14:03:05 -0800 Suggestion, Stick the following line of code in a spot in the php code that gets control from the form submit and see what is actually being passed from the form; foreach($_POST as $k = $v) echo POST[.$k.] = [.$v.]br; see if this shows you what you are looking for. NOTE: if you are not using the form POST method, change all instances of POST to GET in the statement. good luck, Warren Vail -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 1:55 PM To: Dan Aloma Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] [Q]PHP not taking input values from forms that tag is working fine and shows me the info. For some reason php will take input values only from the URL, not from the html code. any ideas? A few questions: a) What's the exact version of PHP? b) Please post the smallest possible form that creates this problem. c) And how are you attempting to access these form values? If you're interested in some working examples and related information, have a look at the following manual page: http://www.php.net/variables.external Thanks for the suggestions, first of all. I tried that exact code from the code you included and I cut and pasted the Simple HTML Form, and below that I pasted the Accessing Data... php code. When I go to the page, all it does after I hit the submit button with data in the fields, is say no input file specified. But when I run it through the url giving the input names with values, it returns them. I tried getting it working with like ten people so far, and no one's been able to figure out... I am running PHP 4.3.4, btw. Be sure you rename the action part of the simple html form to whatever page you are using, instead of foo.php, as otherwise it will literally attempt to access foo.php I'm guessing this is what's happening by seeing no input file specified. Either fix that or on that same manual page is the example titled More complex form variables, this prints to itself as it demonstrates a use of the popular $_SERVER['PHP_SELF'] variable. Also, it's important you realize the difference between POST and GET, and how to access them, so you may want to read that manual page too. (hint: GET is through the URL's QUERY_STRING (the stuff after the ?) while POST is not). Regards, Philip -- 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 _ Keep up with high-tech trends here at Hook'd on Technology. http://special.msn.com/msnbc/hookedontech.armx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Click here for a FREE online computer virus scan from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] [Q]PHP not taking input values from forms
Hello Dan, Saturday, February 14, 2004, 5:19:26 PM, you wrote: DA yeah. phpinfo() works, which is how I know for sure that PHP is working DA fine. It's just not taking inputs. WTF is going? heheI'm going nuts over DA here. Any other ideas? The fact that you cannot post any data to your installation of PHP somewhat highlights the fact that either PHP or your web server configuration are most certainly *not* working fine at all. You already know it's nothing to do with your code, you've tried various pieces of other code (including some from myself) and each and every time it shows the same thing - you cannot post data to your scripts. Surely it's quite obvious you should now be talking to your web host, or re-configuring your server/firewall if you did it yourself, because the problem is now conclusively demonstrated as being there. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] [Q]PHP not taking input values from forms
when i run that, it doesn't show return anything. I really don't understand what's going on with php. I know it's working fine, it's just not returning anything. Even scripts that I KNOW for a fact should be working (i.e. they work for everyone else), don't work for me. Any other ideas? I REALLY need to get this running, and it's upsetting because I don't get what's going on. TIA. From: Vail, Warren [EMAIL PROTECTED] To: 'Philip Olson' [EMAIL PROTECTED],Dan Aloma [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] [Q]PHP not taking input values from forms Date: Thu, 12 Feb 2004 14:03:05 -0800 Suggestion, Stick the following line of code in a spot in the php code that gets control from the form submit and see what is actually being passed from the form; foreach($_POST as $k = $v) echo POST[.$k.] = [.$v.]br; see if this shows you what you are looking for. NOTE: if you are not using the form POST method, change all instances of POST to GET in the statement. good luck, Warren Vail -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 1:55 PM To: Dan Aloma Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] [Q]PHP not taking input values from forms that tag is working fine and shows me the info. For some reason php will take input values only from the URL, not from the html code. any ideas? A few questions: a) What's the exact version of PHP? b) Please post the smallest possible form that creates this problem. c) And how are you attempting to access these form values? If you're interested in some working examples and related information, have a look at the following manual page: http://www.php.net/variables.external Thanks for the suggestions, first of all. I tried that exact code from the code you included and I cut and pasted the Simple HTML Form, and below that I pasted the Accessing Data... php code. When I go to the page, all it does after I hit the submit button with data in the fields, is say no input file specified. But when I run it through the url giving the input names with values, it returns them. I tried getting it working with like ten people so far, and no one's been able to figure out... I am running PHP 4.3.4, btw. Be sure you rename the action part of the simple html form to whatever page you are using, instead of foo.php, as otherwise it will literally attempt to access foo.php I'm guessing this is what's happening by seeing no input file specified. Either fix that or on that same manual page is the example titled More complex form variables, this prints to itself as it demonstrates a use of the popular $_SERVER['PHP_SELF'] variable. Also, it's important you realize the difference between POST and GET, and how to access them, so you may want to read that manual page too. (hint: GET is through the URL's QUERY_STRING (the stuff after the ?) while POST is not). Regards, Philip -- 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 _ Keep up with high-tech trends here at Hook'd on Technology. http://special.msn.com/msnbc/hookedontech.armx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] [Q]PHP not taking input values from forms
I'd try to insert a simple echo statement, and figure out why it's not returning anything. try a file named phpinfo.php snip-- ?php phpinfo(); ? snip--- if your web server implementation is correct that should work. good luck, Warren Vail -Original Message- From: Dan Aloma [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 12:38 PM To: Vail, Warren Cc: [EMAIL PROTECTED] Subject: RE: [PHP] [Q]PHP not taking input values from forms when i run that, it doesn't show return anything. I really don't understand what's going on with php. I know it's working fine, it's just not returning anything. Even scripts that I KNOW for a fact should be working (i.e. they work for everyone else), don't work for me. Any other ideas? I REALLY need to get this running, and it's upsetting because I don't get what's going on. TIA. From: Vail, Warren [EMAIL PROTECTED] To: 'Philip Olson' [EMAIL PROTECTED],Dan Aloma [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] [Q]PHP not taking input values from forms Date: Thu, 12 Feb 2004 14:03:05 -0800 Suggestion, Stick the following line of code in a spot in the php code that gets control from the form submit and see what is actually being passed from the form; foreach($_POST as $k = $v) echo POST[.$k.] = [.$v.]br; see if this shows you what you are looking for. NOTE: if you are not using the form POST method, change all instances of POST to GET in the statement. good luck, Warren Vail -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 1:55 PM To: Dan Aloma Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] [Q]PHP not taking input values from forms that tag is working fine and shows me the info. For some reason php will take input values only from the URL, not from the html code. any ideas? A few questions: a) What's the exact version of PHP? b) Please post the smallest possible form that creates this problem. c) And how are you attempting to access these form values? If you're interested in some working examples and related information, have a look at the following manual page: http://www.php.net/variables.external Thanks for the suggestions, first of all. I tried that exact code from the code you included and I cut and pasted the Simple HTML Form, and below that I pasted the Accessing Data... php code. When I go to the page, all it does after I hit the submit button with data in the fields, is say no input file specified. But when I run it through the url giving the input names with values, it returns them. I tried getting it working with like ten people so far, and no one's been able to figure out... I am running PHP 4.3.4, btw. Be sure you rename the action part of the simple html form to whatever page you are using, instead of foo.php, as otherwise it will literally attempt to access foo.php I'm guessing this is what's happening by seeing no input file specified. Either fix that or on that same manual page is the example titled More complex form variables, this prints to itself as it demonstrates a use of the popular $_SERVER['PHP_SELF'] variable. Also, it's important you realize the difference between POST and GET, and how to access them, so you may want to read that manual page too. (hint: GET is through the URL's QUERY_STRING (the stuff after the ?) while POST is not). Regards, Philip -- 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 _ Keep up with high-tech trends here at Hook'd on Technology. http://special.msn.com/msnbc/hookedontech.armx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] [Q]PHP not taking input values from forms
On 11 February 2004 18:01, Dan Aloma wrote: Sorry about not including code the first time. Here is a snippet of code I am fairly certain should be doing something. Thank you SOOO much for the help. I've been working on setting up php for four days now and EVERYTHING else works (phpinfo() calls, etc), but for some reason forms, even ones that I know should be working don't take values. They just return you to the same screen. CODE: html body brbr ?=$errormessage? br form action=?=$_SERVER['PHP_SELF']? method=post table width=500 border=0 cellpadding=5 cellspacing=0 tr tdYour name:/td tdinput type=text name=namevalue=?=$_POST['name']?/td /tr tr tdYour email:/td tdinput type=text name=email value=?=$_POST['email']?td tr tr tdYour message:/td tdtextarea name=message?=$_POST['message']?/textarea/td/tr /table input type=hidden name=required value=name,email,message input type=submit name=submit value=submit /body/html H'mmm -- one other thought in addition to all the other good pointers: is short_open_tag On or Off? Because if it's off, none of those ?= snippets will fire anyway. 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] [Q]PHP not taking input values from forms
that tag is working fine and shows me the info. For some reason php will take input values only from the URL, not from the html code. any ideas? From: André Cerqueira [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] [Q]PHP not taking input values from forms Date: Wed, 11 Feb 2004 23:56:37 -0300 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 time() is only echo'ed if $_POST['submit'] is something on this case maybe he has a really old version of php... $HTP_POST_VARS...? do what Richard Davey is saying, ?=phpinfo()? on the top Richard Davey wrote: Hello Dan, Wednesday, February 11, 2004, 6:39:35 PM, you wrote: DA they're being tested on a testing machine we use. I know PHP is (rather DA appears to be) working fine. Why would it be parsing files fine and calling DA phpinfo() fine, but not being able to take input values. that's strange echo time() isn't an input value. If it can't even do that then it's not surprising it can't handle $_POST values either, there is something else at play here and it's not your code. Stick echo phpinfo() at the top of your form code - does it work? -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAKutoaxdA/5C8vH8RAo1WAJ9MZMtBAvXcJDizOVXblxp1DlCqSgCeNDdm rmE+jBIlMe4Hb6qaIUObCiQ= =NvxC -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Plan your next US getaway to one of the super destinations here. http://special.msn.com/local/hotdestinations.armx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Q]PHP not taking input values from forms
On Thu, 12 Feb 2004, Dan Aloma wrote: that tag is working fine and shows me the info. For some reason php will take input values only from the URL, not from the html code. any ideas? A few questions: a) What's the exact version of PHP? b) Please post the smallest possible form that creates this problem. c) And how are you attempting to access these form values? If you're interested in some working examples and related information, have a look at the following manual page: http://www.php.net/variables.external Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Q]PHP not taking input values from forms
Thanks for the suggestions, first of all. I tried that exact code from the code you included and I cut and pasted the Simple HTML Form, and below that I pasted the Accessing Data... php code. When I go to the page, all it does after I hit the submit button with data in the fields, is say no input file specified. But when I run it through the url giving the input names with values, it returns them. I tried getting it working with like ten people so far, and no one's been able to figure out... I am running PHP 4.3.4, btw. From: Philip Olson [EMAIL PROTECTED] To: Dan Aloma [EMAIL PROTECTED] CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] [Q]PHP not taking input values from forms Date: Thu, 12 Feb 2004 16:44:37 + (GMT) On Thu, 12 Feb 2004, Dan Aloma wrote: that tag is working fine and shows me the info. For some reason php will take input values only from the URL, not from the html code. any ideas? A few questions: a) What's the exact version of PHP? b) Please post the smallest possible form that creates this problem. c) And how are you attempting to access these form values? If you're interested in some working examples and related information, have a look at the following manual page: http://www.php.net/variables.external Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Find great local high-speed Internet access value at the MSN High-Speed Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Q]PHP not taking input values from forms
that tag is working fine and shows me the info. For some reason php will take input values only from the URL, not from the html code. any ideas? A few questions: a) What's the exact version of PHP? b) Please post the smallest possible form that creates this problem. c) And how are you attempting to access these form values? If you're interested in some working examples and related information, have a look at the following manual page: http://www.php.net/variables.external Thanks for the suggestions, first of all. I tried that exact code from the code you included and I cut and pasted the Simple HTML Form, and below that I pasted the Accessing Data... php code. When I go to the page, all it does after I hit the submit button with data in the fields, is say no input file specified. But when I run it through the url giving the input names with values, it returns them. I tried getting it working with like ten people so far, and no one's been able to figure out... I am running PHP 4.3.4, btw. Be sure you rename the action part of the simple html form to whatever page you are using, instead of foo.php, as otherwise it will literally attempt to access foo.php I'm guessing this is what's happening by seeing no input file specified. Either fix that or on that same manual page is the example titled More complex form variables, this prints to itself as it demonstrates a use of the popular $_SERVER['PHP_SELF'] variable. Also, it's important you realize the difference between POST and GET, and how to access them, so you may want to read that manual page too. (hint: GET is through the URL's QUERY_STRING (the stuff after the ?) while POST is not). Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] [Q]PHP not taking input values from forms
Suggestion, Stick the following line of code in a spot in the php code that gets control from the form submit and see what is actually being passed from the form; foreach($_POST as $k = $v) echo POST[.$k.] = [.$v.]br; see if this shows you what you are looking for. NOTE: if you are not using the form POST method, change all instances of POST to GET in the statement. good luck, Warren Vail -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 1:55 PM To: Dan Aloma Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] [Q]PHP not taking input values from forms that tag is working fine and shows me the info. For some reason php will take input values only from the URL, not from the html code. any ideas? A few questions: a) What's the exact version of PHP? b) Please post the smallest possible form that creates this problem. c) And how are you attempting to access these form values? If you're interested in some working examples and related information, have a look at the following manual page: http://www.php.net/variables.external Thanks for the suggestions, first of all. I tried that exact code from the code you included and I cut and pasted the Simple HTML Form, and below that I pasted the Accessing Data... php code. When I go to the page, all it does after I hit the submit button with data in the fields, is say no input file specified. But when I run it through the url giving the input names with values, it returns them. I tried getting it working with like ten people so far, and no one's been able to figure out... I am running PHP 4.3.4, btw. Be sure you rename the action part of the simple html form to whatever page you are using, instead of foo.php, as otherwise it will literally attempt to access foo.php I'm guessing this is what's happening by seeing no input file specified. Either fix that or on that same manual page is the example titled More complex form variables, this prints to itself as it demonstrates a use of the popular $_SERVER['PHP_SELF'] variable. Also, it's important you realize the difference between POST and GET, and how to access them, so you may want to read that manual page too. (hint: GET is through the URL's QUERY_STRING (the stuff after the ?) while POST is not). Regards, Philip -- 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
[PHP] [Q]PHP not taking input values from forms
Can anyone tell me why PHP is not taking any values I give it? In other words, if I post something it doesn't accept any of those values. I have set register_globals to on, which is the only thing I could think of that would be doing this. I'm a newbie to php, and I've scoured the net for an answer to no avail. Thanks in advance. _ Click here for a FREE online computer virus scan from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Q]PHP not taking input values from forms
Dan Aloma wrote: Can anyone tell me why PHP is not taking any values I give it? In other words, if I post something it doesn't accept any of those values. I have set register_globals to on, which is the only thing I could think of that would be doing this. I'm a newbie to php, and I've scoured the net for an answer to no avail. Thanks in advance. Posting some code would go a long way in helping solve your issue. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Q]PHP not taking input values from forms
Hello Dan, Wednesday, February 11, 2004, 5:47:21 PM, you wrote: DA Can anyone tell me why PHP is not taking any values I give it? In other DA words, if I post something it doesn't accept any of those values. I have set DA register_globals to on, which is the only thing I could think of that would DA be doing this. I'm a newbie to php, and I've scoured the net for an answer DA to no avail. Thanks in advance. Post your code and more importantly, turn register globals off again and learn to code without them on - they're a security nightmare. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] [Q]PHP not taking input values from forms
Please post your code. It makes it easier to understand the problem. Shaunak -Original Message- From: Dan Aloma [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 12:47 PM To: [EMAIL PROTECTED] Subject: [PHP] [Q]PHP not taking input values from forms Can anyone tell me why PHP is not taking any values I give it? In other words, if I post something it doesn't accept any of those values. I have set register_globals to on, which is the only thing I could think of that would be doing this. I'm a newbie to php, and I've scoured the net for an answer to no avail. Thanks in advance. _ Click here for a FREE online computer virus scan from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- 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] [Q]PHP not taking input values from forms
Sorry about not including code the first time. Here is a snippet of code I am fairly certain should be doing something. Thank you SOOO much for the help. I've been working on setting up php for four days now and EVERYTHING else works (phpinfo() calls, etc), but for some reason forms, even ones that I know should be working don't take values. They just return you to the same screen. CODE: html body brbr ?=$errormessage? br form action=?=$_SERVER['PHP_SELF']? method=post table width=500 border=0 cellpadding=5 cellspacing=0 tr tdYour name:/td tdinput type=text name=namevalue=?=$_POST['name']?/td /tr tr tdYour email:/td tdinput type=text name=email value=?=$_POST['email']?td tr tr tdYour message:/td tdtextarea name=message?=$_POST['message']?/textarea/td/tr /table input type=hidden name=required value=name,email,message input type=submit name=submit value=submit /body/html ?php if ($_POST['submit']) { print the form has been submitted; } ? From: Richard Davey [EMAIL PROTECTED] Reply-To: Richard Davey [EMAIL PROTECTED] To: Dan Aloma [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] [Q]PHP not taking input values from forms Date: Wed, 11 Feb 2004 17:49:56 + Hello Dan, Wednesday, February 11, 2004, 5:47:21 PM, you wrote: DA Can anyone tell me why PHP is not taking any values I give it? In other DA words, if I post something it doesn't accept any of those values. I have set DA register_globals to on, which is the only thing I could think of that would DA be doing this. I'm a newbie to php, and I've scoured the net for an answer DA to no avail. Thanks in advance. Post your code and more importantly, turn register globals off again and learn to code without them on - they're a security nightmare. -- Best regards, Richardmailto:[EMAIL PROTECTED] _ Check out the great features of the new MSN 9 Dial-up, with the MSN Dial-up Accelerator. http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] [Q]PHP not taking input values from forms
Hello Dan, Wednesday, February 11, 2004, 6:01:21 PM, you wrote: DA Sorry about not including code the first time. Here is a snippet of code I DA am fairly certain should be doing something. Thank you SOOO much for the Your code is (mostly) fine. The only part that didn't work is the final the form has been submitted section because it comes after the HTML page end. Move it to the start. Also, you don't have a closing form tag. The following is your code, changed slightly.. try it and see but it works perfectly here (PHP 4.3.2, Apache, Windows). I added the echo time() line so you can see if the page reloads or not: html body ?php if ($_POST['submit']) { echo The form has been submittedbr; echo time(); } ? form action=?=$_SERVER['PHP_SELF']? method=post table width=500 border=0 cellpadding=5 cellspacing=0 tr tdYour name:/td tdinput type=text name=namevalue=?=$_POST['name']?/td /tr tr tdYour email:/td tdinput type=text name=email value=?=$_POST['email']?td tr tr tdYour message:/td tdtextarea name=message?=$_POST['message']?/textarea/td/tr /table input type=hidden name=required value=name,email,message input type=submit name=submit value=submit /form /body /html -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Q]PHP not taking input values from forms
Dan Aloma wrote: Sorry about not including code the first time. Here is a snippet of code I am fairly certain should be doing something. Thank you SOOO much for the help. I've been working on setting up php for four days now and EVERYTHING else works (phpinfo() calls, etc), but for some reason forms, even ones that I know should be working don't take values. They just return you to the same screen. CODE: html body brbr ?=$errormessage? br form action=?=$_SERVER['PHP_SELF']? method=post table width=500 border=0 cellpadding=5 cellspacing=0 tr tdYour name:/td tdinput type=text name=namevalue=?=$_POST['name']?/td /tr tr tdYour email:/td tdinput type=text name=email value=?=$_POST['email']?td tr tr tdYour message:/td tdtextarea name=message?=$_POST['message']?/textarea/td/tr /table input type=hidden name=required value=name,email,message input type=submit name=submit value=submit /body/html ?php if ($_POST['submit']) { print the form has been submitted; } ? What's the output to the browser when you submit this? -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re[2]: [PHP] [Q]PHP not taking input values from forms
I tried adding that code you gave me, but all it does go back to the same page, and doesn't echo out the time(); results. I can't seem to figure it out for the life of me. like i said, everything else in php is working fine, except for this. From: Richard Davey [EMAIL PROTECTED] Reply-To: Richard Davey [EMAIL PROTECTED] To: Dan Aloma [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re[2]: [PHP] [Q]PHP not taking input values from forms Date: Wed, 11 Feb 2004 18:20:11 + Hello Dan, Wednesday, February 11, 2004, 6:01:21 PM, you wrote: DA Sorry about not including code the first time. Here is a snippet of code I DA am fairly certain should be doing something. Thank you SOOO much for the Your code is (mostly) fine. The only part that didn't work is the final the form has been submitted section because it comes after the HTML page end. Move it to the start. Also, you don't have a closing form tag. The following is your code, changed slightly.. try it and see but it works perfectly here (PHP 4.3.2, Apache, Windows). I added the echo time() line so you can see if the page reloads or not: html body ?php if ($_POST['submit']) { echo The form has been submittedbr; echo time(); } ? form action=?=$_SERVER['PHP_SELF']? method=post table width=500 border=0 cellpadding=5 cellspacing=0 tr tdYour name:/td tdinput type=text name=namevalue=?=$_POST['name']?/td /tr tr tdYour email:/td tdinput type=text name=email value=?=$_POST['email']?td tr tr tdYour message:/td tdtextarea name=message?=$_POST['message']?/textarea/td/tr /table input type=hidden name=required value=name,email,message input type=submit name=submit value=submit /form /body /html -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Click here for a FREE online computer virus scan from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[4]: [PHP] [Q]PHP not taking input values from forms
Hello Dan, Wednesday, February 11, 2004, 6:32:16 PM, you wrote: DA I tried adding that code you gave me, but all it does go back to the same DA page, and doesn't echo out the time(); results. I can't seem to figure it DA out for the life of me. like i said, everything else in php is working fine, DA except for this. If it doesn't even echo out time() then you have something very wrong in either the installation of PHP (unlikely) or the configuration of using PHP on your web server. Where are these files being hosted/tested? -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re[4]: [PHP] [Q]PHP not taking input values from forms
they're being tested on a testing machine we use. I know PHP is (rather appears to be) working fine. Why would it be parsing files fine and calling phpinfo() fine, but not being able to take input values. that's strange From: Richard Davey [EMAIL PROTECTED] Reply-To: Richard Davey [EMAIL PROTECTED] To: Dan Aloma [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re[4]: [PHP] [Q]PHP not taking input values from forms Date: Wed, 11 Feb 2004 18:35:31 + Hello Dan, Wednesday, February 11, 2004, 6:32:16 PM, you wrote: DA I tried adding that code you gave me, but all it does go back to the same DA page, and doesn't echo out the time(); results. I can't seem to figure it DA out for the life of me. like i said, everything else in php is working fine, DA except for this. If it doesn't even echo out time() then you have something very wrong in either the installation of PHP (unlikely) or the configuration of using PHP on your web server. Where are these files being hosted/tested? -- Best regards, Richardmailto:[EMAIL PROTECTED] _ Choose now from 4 levels of MSN Hotmail Extra Storage - no more account overload! http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[6]: [PHP] [Q]PHP not taking input values from forms
Hello Dan, Wednesday, February 11, 2004, 6:39:35 PM, you wrote: DA they're being tested on a testing machine we use. I know PHP is (rather DA appears to be) working fine. Why would it be parsing files fine and calling DA phpinfo() fine, but not being able to take input values. that's strange echo time() isn't an input value. If it can't even do that then it's not surprising it can't handle $_POST values either, there is something else at play here and it's not your code. Stick echo phpinfo() at the top of your form code - does it work? -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Q]PHP not taking input values from forms
Dan Aloma wrote: I tried adding that code you gave me, but all it does go back to the same page, and doesn't echo out the time(); results. I can't seem to figure it out for the life of me. like i said, everything else in php is working fine, except for this. Fill in some values for your form fields, submit it, and post the source (HTML) of the page it returns. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Q]PHP not taking input values from forms
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 time() is only echo'ed if $_POST['submit'] is something on this case maybe he has a really old version of php... $HTP_POST_VARS...? do what Richard Davey is saying, ?=phpinfo()? on the top Richard Davey wrote: Hello Dan, Wednesday, February 11, 2004, 6:39:35 PM, you wrote: DA they're being tested on a testing machine we use. I know PHP is (rather DA appears to be) working fine. Why would it be parsing files fine and calling DA phpinfo() fine, but not being able to take input values. that's strange echo time() isn't an input value. If it can't even do that then it's not surprising it can't handle $_POST values either, there is something else at play here and it's not your code. Stick echo phpinfo() at the top of your form code - does it work? -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAKutoaxdA/5C8vH8RAo1WAJ9MZMtBAvXcJDizOVXblxp1DlCqSgCeNDdm rmE+jBIlMe4Hb6qaIUObCiQ= =NvxC -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php