Jump to content

help PLEASE!


dadamssg

Recommended Posts

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:&nbsp</b></td><td>{$_SESSION['title']}</td>
       </tr>                        
       <tr>
       <td><b>Description:&nbsp</b></td><td>{$_SESSION['description']}</td>
       </tr>
       <tr>
       <td><b>Event Type:&nbsp</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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.