Quote Originally Posted by image View Post
DAY 7 PHP PROGRAMMING

http://php.flashwebhost.com/tom/day_7_ex_3.php

Code:
<?php


if (isset($_GET ['email'])) {


echo '<h1>Hello ' . $_GET['email'] . '! Welcome to Webmail</h1>' ;


echo '<pre>';


print_r($_GET);


echo '</pre>';


} else {


echo'


<html>


<body>


<h1>Welcome to Webmail</h1>


<p>Please enter your email id and password below</p>


<form method="GET" action = "day_7_ex_3.php">


Enter Your Email: <input name = "email" type="text"><br>


Enter Your Password: <input name = "password" type="text">


<button type="Submit">Enter</button>


</form>


</body>
</html>';


}


Good.

Code:
Enter Your Password: <input name = "password" type="text">
No space needed before and after =

Code:
Enter Your Password: <input name="password" type="text">
This will be better. If you change type="text" to type="password", it will show * when you type a character.