MySQL Forums
Forum List  »  Newbie

Notice Errors, why am i getting them
Posted by: Dan Stillwell
Date: September 02, 2009 03:57AM

Hi Everyone,

Im currently doing a tutorial on php and mysql and the project at the moment is to build a bookmark system.

everything works fine, you can create the users, log the bookmarks, delete ect.

but on the member.php page i get the following:

Notice: Undefined index: username in C:\member.php on line 8

Notice: Undefined index: passwd in C:\member.php on line 9

in member.php there is the following code:

line 7: //create short variable names
line 8: $username = $_POST['username'];
line 9: $passwd = $_POST['passwd'];

both username and passwd are set up in the user table.

my php.ini file has the following settings:

error_reporting = E_ALL | E_STRICT
display_errors = off
log_errors = on
track_errors = off

if someone could help so that either the problem is fixed or the notices stop showing that would be great.

many thanks

Daniel

Options: ReplyQuote


Subject
Written By
Posted
Notice Errors, why am i getting them
September 02, 2009 03:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.