Start New Discussion within our Web Development Community

I have literally been banging my head on my keyboard out of frustration. I'm trying to display PHP sessions as values in my php form, but it's not going so well. here's what I have:

<?php session_start();?><html>
<title>Create An Event</title>
label {float: left; width: 100px;}
input[type=text],textarea {width: 210px;}
<form enctype="multipart/form-data" action="" method="post">
	<p><label for="name">Event Name</label><input type="text" name="name" value="<?php echo $_SESSION['name'];?>" /></p>
	<p><label for="description">Event Description</label><textarea name="description"><?php echo $_SESSION['description'];?></textarea></p>
	<p><label for="location">Location</label><input type="text" name="location" value="<?php echo $_SESSION['where'];?>"></input></p>
	<p><label for="">Start Time</label><input type="text" name="start_time" value="<?php echo $_SESSION['begin'];?>"></input></p>
	<p><label for="end_time">End Time</label><input type="text" name="end_time" value="<?php echo $_SESSION['end'];?>"></input></p>
	<p><input type="submit" value="Create Event" /></p>

php.ini is setup correctly and sessions are showing when I run

<?php session_start(); 
 Print_r ($_SESSION);

Help would be appreciated thanks :D

Try dumping $_SESSION just before the <form> tag. Make sure $_SESSION array has data when comes to this page.

   <form enctype="multipart/form-data" action="" method="post">
This article has been dead for over six months. Start a new discussion instead.