Haha. This is wierd, after learning some PHP after my last thread, I decided to take that dudes challenge of making a news script. Well, it's working pretty well and stuff, I haven't implemented editing or deleting or anything like that yet, but anyways, here is my problem. From the point I am at my script works great. Except 2 things:
1) I get stupid errors like the following, yet the script works how it should:
Notice: Use of undefined constant hiddennews - assumed 'hiddennews' in c:\program files\apache group\apache\htdocs\black rain\news.php on line 41
(note I am using $_POST[string] for the variable)
and
2) How can I make my script work so that AFTER the form has been submitted, you can't submit the same one 2 times. For example, after I submit the form, I have a confirmation page that says "News has been submitted". If I hit the refresh button on that page, it will re-write the data that was in the form and duplicate itself into the database.
Any help would be appreciated!