<h1 align="center">New User</h1>
<form method="post" action="info.php">
<table border="1" width="440" height="" align="center">
<tr>
<td width="80">First Name</td>
<td><input type="text" size="50" name="first"></td>
</tr>
<tr>
<td width="80">Last Name</td>
<td><input type="text" size="50" name="last"></td>
</tr>
<tr>
<td width="80">Email Adress</td>
<td><input type="text" size="50" name="email"></td>
</tr>
<tr>
<td width="70">Password</td>
<td><input type="password" size="50" name="Password"></td>
</tr>
<tr>
<td width="70" >Gender</td>
<td><input type="radio" size="50" name="gender" value="male">Male
<input type="radio" size="50" name="gender" value="female">Female
</td>
</tr>
<tr>
<td width="70">Hobbies</td>
<td><input type="checkbox" size="50" name="ball" value="male">Football
<input type="checkbox" size="50" name="crikt" value="female">Cricket
<input type="checkbox" size="50" name="bok" value="female">Books
</td>
</tr>
<tr>
<td width="100">Country</td>
<td>
<select name="c">
<option>Select-Country</option>
<option value="pk">Pakistan</option>
<option value="ind">India</option>
<option value="jap">Japan</option>
<option value="chi">China</option>
<option value="hong">Hong Kong</option>
<option value="aus">Australia</option>
<option value="eng">England</option>
</tr>
<tr>
<td width="100">Upload</td>
<td>
<input type="file" name="upl">Browser
</td>
</tr>
<tr>
<td width="100">Comments</td>
<td>
<textarea cols="20" rows="5" name="comments"></textarea>
</td>
</tr>
<tr>
<td width="70">Complete</td>
<td><input type="submit" size="50" name="submit">
<input type="reset" size="50" name="reset">
</td>
</tr>
</table></form>
<?php
$firstname=$_POST["first"];
$lastname=$_POST["last"];
$emailadress=$_POST["email"];
$password=$_POST["password"];
$gender=$_POST["gender"];
$gender=$_POST["gender"];
$hobbies=$_POST["ball"];
$hobbies=$_POST["crikt"];
$hobbies=$_POST["bok"];
$country=$_POST["c"];
$upload=$_POST["upl"];
$comments=$_POST["comments"];
$complete=$_POST["submit"];
echo "$firstname";
echo "<br>";
echo "$lastname";
echo "<br>";
echo "$emailadress";
echo "<br>";
echo "$password";
echo "<br>";
echo "$gender";
echo "<br>";
echo "$hobbies";
echo "<br>";
echo "$country";
echo "<br>";
echo "$upload";
echo "<br>";
echo "$comments";
echo "<br>";
echo "$complete";
?>
<form method="post" action="info.php">
<table border="1" width="440" height="" align="center">
<tr>
<td width="80">First Name</td>
<td><input type="text" size="50" name="first"></td>
</tr>
<tr>
<td width="80">Last Name</td>
<td><input type="text" size="50" name="last"></td>
</tr>
<tr>
<td width="80">Email Adress</td>
<td><input type="text" size="50" name="email"></td>
</tr>
<tr>
<td width="70">Password</td>
<td><input type="password" size="50" name="Password"></td>
</tr>
<tr>
<td width="70" >Gender</td>
<td><input type="radio" size="50" name="gender" value="male">Male
<input type="radio" size="50" name="gender" value="female">Female
</td>
</tr>
<tr>
<td width="70">Hobbies</td>
<td><input type="checkbox" size="50" name="ball" value="male">Football
<input type="checkbox" size="50" name="crikt" value="female">Cricket
<input type="checkbox" size="50" name="bok" value="female">Books
</td>
</tr>
<tr>
<td width="100">Country</td>
<td>
<select name="c">
<option>Select-Country</option>
<option value="pk">Pakistan</option>
<option value="ind">India</option>
<option value="jap">Japan</option>
<option value="chi">China</option>
<option value="hong">Hong Kong</option>
<option value="aus">Australia</option>
<option value="eng">England</option>
</tr>
<tr>
<td width="100">Upload</td>
<td>
<input type="file" name="upl">Browser
</td>
</tr>
<tr>
<td width="100">Comments</td>
<td>
<textarea cols="20" rows="5" name="comments"></textarea>
</td>
</tr>
<tr>
<td width="70">Complete</td>
<td><input type="submit" size="50" name="submit">
<input type="reset" size="50" name="reset">
</td>
</tr>
</table></form>
<?php
$firstname=$_POST["first"];
$lastname=$_POST["last"];
$emailadress=$_POST["email"];
$password=$_POST["password"];
$gender=$_POST["gender"];
$gender=$_POST["gender"];
$hobbies=$_POST["ball"];
$hobbies=$_POST["crikt"];
$hobbies=$_POST["bok"];
$country=$_POST["c"];
$upload=$_POST["upl"];
$comments=$_POST["comments"];
$complete=$_POST["submit"];
echo "$firstname";
echo "<br>";
echo "$lastname";
echo "<br>";
echo "$emailadress";
echo "<br>";
echo "$password";
echo "<br>";
echo "$gender";
echo "<br>";
echo "$hobbies";
echo "<br>";
echo "$country";
echo "<br>";
echo "$upload";
echo "<br>";
echo "$comments";
echo "<br>";
echo "$complete";
?>
No comments:
Post a Comment