My problem is that since they're not selecting the page and submitting the content in the same action by the time they go to update the content the script has forgotten what page they wanted to edit.
I tried this:
Code: Select all
if (isset($_GET["title"])) {
$title = mysql_real_escape_string($_GET["title"]);
}
I could have them select the page and input the content in one fell swoop, but then it won't pull in the existing data, which would be annoying if you only wanted to change the content instead of replacing it.
Any help would be greatly appreciated. I need this to work tonight so I can do the design side of things tomorrow.
ps Sorry if this is obvious, it's very late here and I've been working on this project all day.