Page 1 of 1

how can i run this php script and html

Posted: Tue Dec 02, 2008 6:12 am
by hakimade
please can anybody tell me how i can run this php html with php without hosting

{code}

<form method="post" action="sendmail.php">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>



<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

mail( "yourname@example.com", "Feedback Form Results", $message, "From: $email" );
header( "Location: http://www.example.com/thankyou.html" );
?>

{code}

Re: how can i run this php script and html

Posted: Wed Dec 03, 2008 3:05 am
by jaoudestudios
please can anybody tell me how i can run this php html with php without hosting
That does not make sense! Please state your issue clearly!

Plus on a side note your email headers are not protected from injection!