alen Posted December 15, 2006 Share Posted December 15, 2006 I keep getting an error I can't get rid of:Notice: Undefined index: submit in C:\Program Files\Server\public_html\news\add.php on line 12and here's my code:http://anigma.sitees.com/add.txt Quote Link to comment Share on other sites More sharing options...
alen Posted December 15, 2006 Author Share Posted December 15, 2006 should I just get rid of the errors with adding:error_reporting(E_ALL ^ E_NOTICE); Quote Link to comment Share on other sites More sharing options...
taith Posted December 15, 2006 Share Posted December 15, 2006 just as a forenote... you might want to remove the user/password from submitted code ;-) Quote Link to comment Share on other sites More sharing options...
alen Posted December 15, 2006 Author Share Posted December 15, 2006 it doesn't actually matter since it's just a random password on my localhost. Quote Link to comment Share on other sites More sharing options...
alen Posted December 15, 2006 Author Share Posted December 15, 2006 changed the passwords :) Quote Link to comment Share on other sites More sharing options...
taith Posted December 15, 2006 Share Posted December 15, 2006 also, your missing the time field[code] $result=mysql_error("INSERT INTO news (title,message,who,date,time) VALUES ('$title', '$message', '$who', '$date')"); [/code] Quote Link to comment Share on other sites More sharing options...
alen Posted December 15, 2006 Author Share Posted December 15, 2006 sorry about that, i'm removing the time field. Quote Link to comment Share on other sites More sharing options...
alen Posted December 15, 2006 Author Share Posted December 15, 2006 i got rid of the errors.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.