dadamssg Posted January 18, 2009 Share Posted January 18, 2009 im getting an error when im entering the session variables in the if-statement...any clues why? the brackets work in later part, but i tried it here and they didn't work...still an error right there. <?php /* File: checkpost.php*/ include("caneck.inc"); session_start(); $_SESSION['title'] = $_POST['title']; $_SESSION['description'] = $_POST['description']; #10 $_SESSION['event'] = $_POST['event']; $message == "Please enter a: "; /*check for blanks*/ if($_SESSION['title'] == "") #15 { $message .= "title, "; exit(); } if($_SESSION['description'] == "") { $message .= "description, "; exit(); } echo "<table border='7'> <tr> <td><b>Title: </b></td><td>{$_SESSION['title']}</td> </tr> <tr> <td><b>Description: </b></td><td>{$_SESSION['description']}</td> </tr> <tr> <td><b>Event Type: </b></td><td>{$_SESSION['event']}</td> </tr> <tr> <td colspan=2><center><form action='submitpost.php' method='POST'><input type='submit' name='post' value='post'> </center></form> </td> </tr> </table>"; ?> Link to comment https://forums.phpfreaks.com/topic/141316-help-please/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.