I have a contact form and a validate form. I'll keep this short and sweet, if it can work for one field, I can figure it out for the rest.
I have session_start() at the top of both form and validate pages to start with. On the form page I have
Expand|Select|Wrap|Line Numbers
- <input name="Name" type="text" id="Name" value="<?php echo $_SESSION['Name']; ?>">
Expand|Select|Wrap|Line Numbers
- <br />
Expand|Select|Wrap|Line Numbers
- <br />
- <b>Notice</b>: Undefined index: AdditionalComments in <b>/myservers/mydir/htdocs/contact2.php</b> on line <b>208</b><br />
I'm stumped, I've tried, searching for the tag, if/then statements for null values in the session. This is one problem that is easier with good ol ASP, I don't know what im missing. I'm trying to just show a blank form when a user views it for the first time, after they submit, it's validated, if it's good fine, if not it will re-direct and then keep state with the sessions for values. Instead it just shows that <br /> tag. Help please, I've been at this since this morning.