Tuesday, 6 August 2013

Error suppression ignored for, undefined index

Error suppression ignored for, undefined index

pI have a login.php page with/p precodelt;!DOCTYPE html PUBLIC -//W3C//DTD
XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdgt; lt;html
xmlns=http://www.w3.org/1999/xhtmlgt; lt;headgt; lt;meta
http-equiv=Content-Type content=text/html; charset=iso-8859-1 /gt;
lt;titlegt;Login Pagelt;/titlegt; lt;style type=text/cssgt; h2
{letter-spacing: 10px; font-size: .2in; background-color: #33CC00; color:
#000000; text-transform:uppercase; width:260px} span {color: #FF00CC}
legend {font-variant: small-caps; font-weight: bold} fieldset {width:
260px; font-family: Times New Roman, Times, serif; background-color:
#CCCCCC; color: #000000} label {display:block;} .placeButtons {position:
relative; left: 0px; width: 70px; margin: 5px; 0px;} lt;/stylegt;
lt;/headgt; lt;bodygt; lt;h2gt;Login Pagelt;/h2gt; lt;form name=loginform
action='successfullogin.php' method='POST'gt; lt;fieldsetgt;
lt;legendgt;Formlt;/legendgt; lt;labelgt;Username: lt;input type=text
name=username/gt;lt;spangt;*lt;/spangt;lt;/labelgt; lt;br/gt;
lt;labelgt;Password: lt;input type=password
name=pass/gt;lt;spangt;*lt;/spangt;lt;/labelgt; lt;input
class=placeButtons type=reset value='Reset'/gt; lt;input
class=placeButtons type=submit value='Login'/gt; lt;a
href='register.php'gt;Registerlt;/agt; lt;/fieldsetgt; lt;/formgt;
lt;/bodygt; lt;/htmlgt; /code/pre pand also my register.php page/p
precodelt;?php echo Register; $submit = $_POST['submit']; $fullname =
strip_tags($_POST['fullname']); $username =
strip_tags($_POST['username']); $password =
strip_tags($_POST['password']); $repeatpassword =
strip_tags($_POST['repeatpassword']); $date = date(Y-m-d); ?gt; lt;htmlgt;
lt;pgt; lt;form action='register.php' method='POST'gt; lt;tablegt;
lt;trgt; lt;tdgt; Your full name: lt;/tdgt; lt;tdgt; lt;input type='text'
name='fullname' value='lt;?php echo $fullname ?gt;'gt; lt;/tdgt; lt;/trgt;
lt;trgt; lt;tdgt; Choose a username: lt;/tdgt; lt;tdgt; lt;input
type='text' name='username' value='lt;?php echo $username ?gt;'gt;
lt;/tdgt; lt;/trgt; lt;trgt; lt;tdgt; Choose a password: lt;/tdgt;
lt;tdgt; lt;input type='password' name='password'gt; lt;/tdgt; lt;/trgt;
lt;trgt; lt;tdgt; Repeat your password: lt;/tdgt; lt;tdgt; lt;input
type='password' name='repeatpassword'gt; lt;/tdgt; lt;/trgt; lt;/tablegt;
lt;pgt; lt;input type='submit' name='submit' value='Register'gt; lt;/pgt;
lt;/formgt; lt;/htmlgt; /code/pre pbut when I click register in the login
page I have the error/p precodeNotice: Undefined index: submit in
C:\wamp\www\.... on line 3 Notice: Undefined index: fullname in
C:\wamp\www\.... on line 4 Notice: Undefined index: username in
C:\wamp\www\.... on line 5 Notice: Undefined index: password in
C:\wamp\www\.... on line 6 Notice: Undefined index: repeatpassword in
C:\wamp\www\.... on line 7 /code/pre pMy question is first of all what I
am missing and secondly what's the meaning of this error. Because I have
seen it many times./p

No comments:

Post a Comment