please can anybody

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hakimade
Forum Newbie
Posts: 2
Joined: Tue Dec 02, 2008 5:59 am

please can anybody

Post by hakimade »

please can anybody tell me how i can run this html with phpscript without hosting



<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" );
?>
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

Re: please can anybody

Post by novice4eva »

i would suggest you do
1. find about wamp, xxamp and others of that type....download/install
2. Download a php manual, learn to enable error reporting
3. Look up the functions in PHP manual and understand why SO MANY ERRORS!!!
4. Realize that although the problems/solutions were simple , it was particularly not easy to explain it straight-forward given the knowledge u had at the time


:google:
Post Reply