rite i have set up an email form but instead of people having to type in my email address how cna i make it so that it is already configured to send to my email without having to type email in.
Here is wot i have at the moment.
<html>
<body>
<form action="<?=$PHP_SELF ?>" method="post">
Email:<input type="text" name="e-mail" /><br>
Subject:<input type="text" name="subject" /><br>
Message:<input type="text" name="message" /><br>
<input type="hidden" name="submit" value="ok" /><br>
<input type="submit" value="send" />
</form>
<?php
if ($POST['submit'] == "ok")
{
$email = $POST['e-mail'];
$subject = $POST['subject'];
$message = $POST['message'];
if (! mail($email,$subject,$message))
{ echo('could not send');
}else{
echo('e-mail sent');
}
}
?>
</body>
</html>