<?php
if(isset($_POST['submit']))
{
echo "<pre>";
print_r($_POST);
echo "</pre>";
}
?>
<label>Welcome to the Registration Form:</label>
<form name="registration" action="" method="post" enctype="multipart/form-data" >
<table width="60%">
<tr>
<td width="20%">Gender:</td>
<td width="40%">
<input type="radio" name="gender" value="male">Male
<input type="radio" name="gender" value="female">Female<br>
</td>
</tr>
<tr>
<td>Choose Product: </td>
<td>
<input type="checkbox" name="item1" value="mobile">Mobile
<input type="checkbox" name="item2" value="laptop">Laptop<br>
</td>
</tr>
<tr>
<td>Country: </td>
<td>
<select name="country">
<option value="1">BD</option>
<option value="2">Not BD</option>
</select>
</td>
</tr>
<tr>
<td>Username:</td>
<td><input type="text" name="userNAME" placeholder="Put your Username" required /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="passWORD" required /></td>
</tr>
<tr>
<td>Email Address:</td>
<td><input type="email" name="emailADDRESS" required /></td>
</tr>
<tr>
<td>Zip Code: </td>
<td><input type="number" name="zipCODE" min="1" max="4" required ></td>
</tr>
<tr>
<td>Date of Birth:</td>
<td><input type="date" name="dateofBIRTH" max="2014-11-30"></td>
</tr>
<tr>
<td>Color you Like:</td>
<td><input type="color" name="myCOLOR" value="#ff0000"></td>
</tr>
<tr>
<td>Upload your Photo:</td>
<td><input type="file" name="my_photo" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Press Enter" name="submit" /></td>
</table>
</form>
if(isset($_POST['submit']))
{
echo "<pre>";
print_r($_POST);
echo "</pre>";
}
?>
<label>Welcome to the Registration Form:</label>
<form name="registration" action="" method="post" enctype="multipart/form-data" >
<table width="60%">
<tr>
<td width="20%">Gender:</td>
<td width="40%">
<input type="radio" name="gender" value="male">Male
<input type="radio" name="gender" value="female">Female<br>
</td>
</tr>
<tr>
<td>Choose Product: </td>
<td>
<input type="checkbox" name="item1" value="mobile">Mobile
<input type="checkbox" name="item2" value="laptop">Laptop<br>
</td>
</tr>
<tr>
<td>Country: </td>
<td>
<select name="country">
<option value="1">BD</option>
<option value="2">Not BD</option>
</select>
</td>
</tr>
<tr>
<td>Username:</td>
<td><input type="text" name="userNAME" placeholder="Put your Username" required /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="passWORD" required /></td>
</tr>
<tr>
<td>Email Address:</td>
<td><input type="email" name="emailADDRESS" required /></td>
</tr>
<tr>
<td>Zip Code: </td>
<td><input type="number" name="zipCODE" min="1" max="4" required ></td>
</tr>
<tr>
<td>Date of Birth:</td>
<td><input type="date" name="dateofBIRTH" max="2014-11-30"></td>
</tr>
<tr>
<td>Color you Like:</td>
<td><input type="color" name="myCOLOR" value="#ff0000"></td>
</tr>
<tr>
<td>Upload your Photo:</td>
<td><input type="file" name="my_photo" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Press Enter" name="submit" /></td>
</table>
</form>
Post a Comment