Rotate your phone or change to desktop for better experience

Rotate your phone or change to desktop for better experience

Develop a PHP program and check message passing mechanism between pages.

 

Pgm2a.php

<html>

<body>

 <h1>Login Page </h1>

 <form action="pgm2b.php" method="post">

 <table>

 <tr><td>Name:</td><td> <input type="text" name="name"/></td></tr>

 <tr><td>Password:</td><td> <input type="password"

name="password"/></td></tr>

 <tr><td colspan="2"><input type="submit" value="login"/> </td></tr>

 </table>

 </form>

</body>

 </html>




pgm2b.php

<?php

$name=$_POST["name"];

$password=$_POST["password"];

echo "Welcome: $name, your password is: $password";

?>





Post a Comment

0 Comments