HTML Code: Save for(index.html)
<html>
<body>
<style>enq {
width: 25%;
line-height: 25px;
}
</style>
<div class="enq">
<p style="color:#f00;">Required fields are <b>*</b></p>
<form action="contact.php" method="post">
<p><b>Your Name:*</b> <input type="text" placeholder="Name" name="yourname" /><br />
<b>Subject:*</b> <input type="text" placeholder="Subject" name="subject" /><br />
<b>E-mail:*</b> <input type="text" placeholder="username@domain.com" name="email" /><br />
Website:* <input type="text" placeholder="www.yourdomain.com" name="website"></p>
<p>Do you like this website?*
<input type="radio" name="likeit" value="Yes" checked="checked" /> Yes
<input type="radio" name="likeit" value="No" /> No
<input type="radio" name="likeit" value="Not sure" /> Not sure</p>
<p>How did you find us?
<select name="how">
<option value=""> -- Please select -- </option>
<option>Google</option>
<option>Yahoo</option>
<option>Link from a website</option>
<option>Word of mouth</option>
<option>Other</option>
</select>
<p><b>Your comments:*</b><br />
<textarea placeholder="Comments" name="comments" rows="10" cols="40"></textarea></p>
<p><input type="submit" value="Send it!"></p>
</form>
</div>
</body>
</html>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Code 2: Save for(thanks.htm)
<html>
<p text-align="center">Your message was sent</p>
</html>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<html>
<body>
<style>enq {
width: 25%;
line-height: 25px;
}
</style>
<div class="enq">
<p style="color:#f00;">Required fields are <b>*</b></p>
<form action="contact.php" method="post">
<p><b>Your Name:*</b> <input type="text" placeholder="Name" name="yourname" /><br />
<b>Subject:*</b> <input type="text" placeholder="Subject" name="subject" /><br />
<b>E-mail:*</b> <input type="text" placeholder="username@domain.com" name="email" /><br />
Website:* <input type="text" placeholder="www.yourdomain.com" name="website"></p>
<p>Do you like this website?*
<input type="radio" name="likeit" value="Yes" checked="checked" /> Yes
<input type="radio" name="likeit" value="No" /> No
<input type="radio" name="likeit" value="Not sure" /> Not sure</p>
<p>How did you find us?
<select name="how">
<option value=""> -- Please select -- </option>
<option>Google</option>
<option>Yahoo</option>
<option>Link from a website</option>
<option>Word of mouth</option>
<option>Other</option>
</select>
<p><b>Your comments:*</b><br />
<textarea placeholder="Comments" name="comments" rows="10" cols="40"></textarea></p>
<p><input type="submit" value="Send it!"></p>
</form>
</div>
</body>
</html>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Code 2: Save for(thanks.htm)
<html>
<p text-align="center">Your message was sent</p>
</html>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------