<!-- User Registration.html -->
<html>
<head>
<title> User Registration Form</title>
</head>
<body>
<h1> Fill in the details to win fabulous prizes</h1>
<form action="confirm_reject.php" method="post">
<p align="center">
<table>
<tr>
<td>
First Name
</td>
<td>
<input type="text" name="fname"/>
</td>
</tr>
<tr>
<td>
Last Name:
</td>
<td>
<input type="text" name="lname"/>
</td>
</tr>
<tr>
<td>
User name:
</td>
<td>
<input type="text" name="uname"/>
</td>
</tr>
<tr>
<td>
Password:
</td>
<td>
<input type="password" name="pwd"/>
</td>
</tr>
<tr>
<td>
Confirm Password:
</td>
<td>
<input type="password" name="cpwd"/>
</td>
</tr>
<tr>
<td>
Sex:
</td>
<td>
Male : <input type="radio" name="stype" value="Male">
Female : <input type="radio" name="stype" value="Female">
</td>
</tr>
<tr>
<td>
Address:
</td>
<td>
<input type="textarea" name="add" rows="6" cols="150"/>
</td>
</tr>
</table>
<br>
<input type="submit" name="submit" value="Submit"/>
</p>
</form>
</body>
</html>
<----- confirm_reject.php --->
<?php
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$uname=$_POST['uname'];
$pwd=$_POST['pwd'];
$cpwd=$_POST['cpwd'];
$sex=$_POST['stype'];
$address=$_POST['add'];
if($sex == "Male")
{
$type="Mr.";
}
else
{
$type="Ms.";
}
?>
<?php
print "Good Morning $type $fname $lname. How are you doing this fine morning?\n";
print "Your username $uname has been confirmed and we will notify you of your prize ASAP.";
?>
<br>
<br>
</h1>
TILL THEN..........ENJOY
Paid for writing
In case you like my writing and would like me to write for your website, then please leave a comment to any of my blog article, mentioning your Email Id and I will reply back. Thanks
Wednesday, January 28, 2009
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment