PHP program to display the bio data of a person by reading the person details using an HTML|EasyCoding45

 In this Tutorial, we are going to learn how we can write a PHP program to display the bio data of a person by reading the person details using an HTML.


Program :--(HTML page)

<html>

<head>

<title>User Information</title>

<center><h3>USER INFORMATION</h3>

<table border=1>

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

<tr><th>Enter User-ID :</th><td><input type=text name=t1></td>

<tr><th>Enter User Name :</th><td><input type=text name=t2></td></br>

<tr><th>Enter User Address :</th><td><input type=text name=t3></td></br>

<tr><th>Enter User Email :</th><td><input type=text name=t4></td></br>

<tr><th>Enter Mobile no :</th><td><input type=text name=t5></br></td>

</table><br>

<input type=submit value=submit>

</form>

</center>

</head>

</html>


Program :--(PHP program)

<?php

$id=$_POST['t1'];

$name=$_POST['t2'];

$add=$_POST['t3'];

$email=$_POST['t4'];

$mobile=$_POST['t5'];


echo"<center><h3>User Information on Next Page </h3><table border=1>

<tr>

<th>User ID</th>

<td>$id</td>

</tr>";

echo "<tr>

<th>User Name</th>

<td>$name</td>

</tr>";

echo "<tr>

<th>User Address</th>

<td>$add</td>

</tr>";

echo "<tr>

<th>User Email</th>

<td>$email</td>

</tr>";

echo "<tr>

<th>User Mobile no</th>

<td>$mobile</td>

</tr>";

?>


Output :--
                    







Comments