Persistant Undefined Index Error with php/mysql
| From: | Monique Verrier | Date: | Sat, 03 Jul 2004 05:44:36 +0000 |
| Subject: | Persistant Undefined Index Error with php/mysql | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-13790@lists.php.net to get a copy of this message | ||
Hi!
I am hoping that someone can be of help. I think that there may be a
problem with my installation because I'm getting the same error with a
tutorial I'm working on and some software I tried to install. I keep
getting the undefined index error. Does anyone have any suggestions?
Thanks so much!
Monique.
Here is the code:
<?
include 'db.php';
// Define post fields into simple variables
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$email_address = $_POST['email_address'];
$username = $_POST['username'];
$info = $_POST['info'];
.............etc.
Here are the errors:
Notice: Undefined index: first_name in c:\inetpub\wwwroot\mem\register.php
on line 6
Notice: Undefined index: last_name in c:\inetpub\wwwroot\mem\register.php on
line 7
Notice: Undefined index: email_address in
c:\inetpub\wwwroot\mem\register.php on line 8
Notice: Undefined index: username in c:\inetpub\wwwroot\mem\register.php on
line 9
Notice: Undefined index: info in c:\inetpub\wwwroot\mem\register.php on line
10