Re: Persistant Undefined Index Error with php/mysql

From: Date: Sat, 03 Jul 2004 07:33:11 +0000
Subject: Re: Persistant Undefined Index Error with php/mysql
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-13791@lists.php.net to get a copy of this message
Hi, In your form you should have fields with these names(i.e. first_name, last_name etc.) and method attribute of form should be set to post. zareef ahmed --- Monique Verrier <monique@costill.com> wrote: > 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 > ===== Zareef Ahmed :: A PHP Developer in Delhi(India). Homepage :: http://www.zasaifi.com __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail

« previous php.install (#13791) next »