hello well here i am to tell you that i had just got how to make Contact page with php.so you should also try it.
Quote:
<?php
if(isset($hidden)){
if(!isset($from) or !isset($subject) or !isset($message)) {
echo("Your message couldn't be sent, because one or more fields weren't complete.");
} else {
$to = "your email@hotmail.com";
$from = "$from";
$subject = "$subject";
$message = "$message";
mail($to, $subject, $message,"From: $from");
echo("Your message was sent.");
}
}
?>
<form action="<?=$file_location;?>" method="post">
<input type="hidden" name="hidden" value="true">
<table>
<tr><td>From:</td><td><input type="text" name="from" value="" size="40"></td></tr>
<tr><td>Subject:</td><td><input type="text" name="subject" value="" size="40"></td></tr>
<tr><td>Message:</td><td><textarea name="message" cols="60" rows="10"></textarea></td></tr>
<tr><td colspan="2" align="right"><input type="submit" style="font-weight: bold" value="Send"></td></tr>
</table>
</form>
|
copy this code to note pad and save the file as (.HTML) and open
Thanks.