PHP Gurus, I'm really stuck here. I've written the following code, and it will never execute the if statement. I keep getting the form displayed, and when I fill the form and hit the submit button, the HTTP_SESSION_VARS array does not seem to take any of the values set out in the form. Is there an error in this code? I've checked and double checked, but I can't see why the variables wouldn't post. Any advice much appreciated.
session_start(); if(isset($HTTP_SESSION_VARS['episodeTitle']) && isset($HTTP_SESSION_VARS['episodePP'])) { $episodePP=addslashes($HTTP_SESSION_VARS['episodePP']); $episodeTitle=addslashes($HTTP_SESSION_VARS['episodeTitle']); db_connect(); $insertPPQuery = "INSERT INTO scripts (title, plotpoints) VALUES (" . $episodeTitle . ", " . $episodePP . ")"; $insertPPResult = mysql_query($insertPPQuery); unset ($HTTP_SESSION_VARS['$episodeTitle']); unset ($HTTP_SESSION_VARS['$episodePP']); echo 'Your episode, "' . $episodeTitle . '", has been saved. Would you like to <a href="addplotpoint.php">add another episode</a>?'; } else { echo 'Enter in a new episode in plot point form.<br><br>'; echo '<form action="thispage.php" method="post" name="newPP"><br>'; echo 'Title:<br>'; echo '<input type="text" name="episodeTitle" size="75"><br>'; echo 'Text:<br>'; echo '<textarea name="episodePP" rows="10" cols="55"></textarea><br>'; echo '<input type="submit" name="submitButton" value="Upload">'; echo '</form>'; } -- Yoroshiku! Dave G [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php