in register showing errors

+1 Gourav Garg · November 26, 2014
 Undefined index: username,password etc but only one time just at start then go away as you enter data

Post a Reply

Replies

Oldest  Newest  Rating
0 Dezmen Sykes · November 26, 2014
gotta checc if the data isset before referencing the data

do this.

if(isset($_POST['username')
{
   $username = $_POST['username'];
  if(!empty($username))
  {
       // execute code
  }
}

not this

$username = $_POST['username'];

if(isset($username))
{
  //etc, etc
}
0 Gourav Garg · November 26, 2014
thanks i got my answer
  • 1

PHP

107,323 followers
About

Server-side, HTML embedded scripting language used to create dynamic Web pages.

Links
Moderators