$_SESSION[''] if statement is printing error [SOLVED]
Posted: Sun Jul 16, 2006 10:34 am
I have a page that includes page1.php:
Page1.php
I have this on the included page: (Just put it all together)
And I keep getting this in the textbox:
Page1.php
I have this on the included page: (Just put it all together)
Code: Select all
<input name="username" type="text" id="username" value="Code: Select all
<?php if(!isset($_POST['reset']) || isset($_SESSION['username'])){ print($_SESSION['username']); } ?>Code: Select all
" size="28" maxlength="25" /><br /><b>Notice</b>: Undefined index: username in <b>/home/public_html/register/page1.php</b> on line <b>21</b><br />