[PHP] newbie bigtime
Just opened a "How to" book today on PHP. Already having problems and wouldn't mind an extra set of eyes. My basic form does not produce results.Any thoughts on this one? http://www.hermengoode.com/php/form.html Thanks! spellman __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie bigtime
The code for form.html is HTML Form First Name Last Name E-mail Address Comments and the code for the HandleForm.php is Form Results \n"; print "Your last name is $LastName.\n"; print "Your E-mail Address is $Email.\n"; print "This is what you had to say:\n $Comments\n"; ?> And the book suggested POST instead of GET because it is stated that Post is secure and GET is not. Thanks, spellman --- Miguel Cruz <[EMAIL PROTECTED]> wrote: > On Wed, 15 May 2002, k spellman wrote: > > Just opened a "How to" book today on PHP. Already > > having problems and wouldn't mind an extra set of > > eyes. My basic form does not produce results.Any > > thoughts on this one? > > > > http://www.hermengoode.com/php/form.html > > Well, you don't show your source code, but if I had > to guess I'd say you > have a newish install of PHP and an oldish book, and > you're trying to get > the value of $LastName rather than > $_GET['LastName']. > > miguel > __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie bigtime
The code for form.html is HTML Form First Name Last Name E-mail Address Comments and the code for the HandleForm.php is Form Results \n"; print "Your last name is $LastName.\n"; print "Your E-mail Address is $Email.\n"; print "This is what you had to say:\n $Comments\n"; ?> And the book suggested POST instead of GET because it is stated that Post is secure and GET is not. Thanks, spellman --- Justin French <[EMAIL PROTECTED]> wrote: > Show us the code for processing the form! > > My guess is your book uses code with $firstname > rather than > $_POST['firstname']... given that your version of > PHP is probably new > (4.2.x), register_globals is prolly OFF in your > php.ini config file. > > Justin > > > > on 16/05/02 12:13 PM, k spellman > ([EMAIL PROTECTED]) wrote: > > > Just opened a "How to" book today on PHP. Already > > having problems and wouldn't mind an extra set of > > eyes. My basic form does not produce results.Any > > thoughts on this one? > > > > http://www.hermengoode.com/php/form.html > > > > Thanks! > > spellman > > > > __ > > Do You Yahoo!? > > LAUNCH - Your Yahoo! Music Experience > > http://launch.yahoo.com > __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php