Zaloguj | Zarejestruj | FAQ
Anonymous

error

+ Odpowiedz

Posty: 1 Strona 1 z 1


error

przez hashid » Pt lut 17, 2017 7:01 pm

//phpcode//
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<p>welcome, <?php echo $_GET["name"]; ?></br /><br /></p>
<p>welcome, <?php echo $_GET["email"]; ?></br /><br /></p>
<p>welcome, <?php echo $_GET["uname"]; ?></br /><br /></p>
</body>
</html>

//html code//
<!Doctype html>
<html>
<meta charset="utf-8">
<body>
<form action="sample.php" method="post">
<label>Your Name</label>
<input type="text" name="name">
</br>
<label>E-mail</label>
<input type="text" name="email">
</br>
<label>Username</label>
<input type="text" name="uname">
</br>
<label>password</label>
<input type="password" name="passwrd">
</br>
<select>
<option value="choose"></option>
<option>B.Tech</option>
<option>MCA</option>
<option>M.Tech</option>
<option>BCA</option>
<option>Others</option>
</select>
<input type="submit" value="submit">
</form>
</body>
</html>
this showing error
"welcome,
Notice: Undefined index: name in C:\xampp\htdocs\sample.php on line 8"
plz help me to sort this out..i have just started learning this.any one who knows this help me.
Avatar użytkownika

hashid

  • Posty: 1
  • Dołączył(a): Pt lut 17, 2017 6:56 pm


+ Odpowiedz

Strona 1 z 1