Re: newbie bigtime
| From: | Miguel Cruz | Date: | Thu, 16 May 2002 02:27:03 +0000 |
| Subject: | Re: newbie bigtime | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97864@lists.php.net to get a copy of this message | ||
On Wed, 15 May 2002, k spellman wrote:
> /* This page receives and handles the data generated
> by "form.html". */
> print "Your first name is $FirstName.<BR>\n";
> print "Your last name is $LastName.<BR>\n";
> print "Your E-mail Address is $Email.<BR>\n";
> print "This is what you had to say:<BR>\n
> $Comments<BR>\n";
With newer installations of PHP, form data does not by default show up in
eponymous variables. This has been discussed at great length here - just
check the archives for any random day in the past month or so.
For best results, write the print statement like this:
print "Your first name is {$_REQUEST['FirstName']}.<br>\n";
and you'll get the results you're after.
> And the book suggested POST instead of GET because it
> is stated that Post is secure and GET is not.
That's ridiculous. Buy a new book.
miguel