RE: Empty Variable Values Between Scripts
| From: | Frank Hahn | Date: | Tue, 08 Jun 2004 20:21:04 +0000 |
| Subject: | RE: Empty Variable Values Between Scripts | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187913@lists.php.net to get a copy of this message | ||
"Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in
news:C8F323573C030A448F3E5A2B6FE2070B03522604@nemesis:
> register globals is off, so all of your variables are in the POST array
>
> $_POST['first']
> $_POST['last']
>
> etc. Replace all your variable references with the appropriate array
> references and you'll be off to the races.
>
Jay:
I edited the insert.php file and changed the $query line from what was
previously posted to that below (all one line):
$query = "INSERT INTO Contacts VALUES ('','$_POST[first]','$_POST
[last]','$_POST
[phone]','$_POST[mobile]','$_POST[fax]','$_POST
[email]','$_POST[web]')";
This works like the article says it should.
Thank you for your help.
--
Frank Hahn