Re: post values from HTML to PHP
| From: | Catalin Trifu | Date: | Sun, 31 Aug 2003 18:57:42 +0000 |
| Subject: | Re: post values from HTML to PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161319@lists.php.net to get a copy of this message | ||
Hi,
Did you use a <FORM action='script.php' method='POST'> in HTML ?
Notice the POST method. You can also use $_REQUEST, which hold all
variable posted, either by POST or GET.
Cheers,
Catalin
"Ted Yu" <ted_yu@yahoo.com> wrote in message
news:20030831184915.94648.qmail@pb1.pair.com...
> Hi,
> I found that $_POST['name'] is empty inside my PHP script whose previous
> HTML page has the following:
> <input type="text" name="name">
> How can I retrieve values in input fields ?
> Thanks