http://php.flashwebhost.com/vineesh/day7/day_7_ex_4.php
PHP Code:
<?php
if (isset($_GET['name'])) {
echo ucwords('<font color="red"><b>Hello ' . $_GET[name] . '. </b></font>' . '<font color="red"><b> your informations successfully submitted.</b></font> ');
} else {
echo '
<html>
<body>
<h1 align=center>Enter your family members details</h1>
<form method="GET" action="day_7_ex_4.php">
<table width=50% align=center border=0>
<tr>
<td>Enter Your name: </td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td>Enter Your father name:</td>
<td> <input type="text" name="fname"></td>
</tr>
<tr>
<td>Enter Your mother name: </td>
<td><input type="text" name="mname"></td>
</tr>
<tr>
<td>Enter Your email: </td>
<td><input type="text" name="email"></td>
</tr>
<tr>
<td>Enter Your Address: </td>
<td> <textarea type="text" name="address"></textarea></td>
</tr>
<tr>
<td> </td>
<td><button type="submit">Submit</button> <button type="reset">Reset</button></td>
</tr>
</table>
</form>
</body>
</html>';
}
Bookmarks