bai istoryans ,,,, unsay code sa HTML/PHP na mka send tag mga comments/Contact form? direct sa email address for example:
Name:______________
Email:______________
Message:______________
tabang
bai istoryans ,,,, unsay code sa HTML/PHP na mka send tag mga comments/Contact form? direct sa email address for example:
Name:______________
Email:______________
Message:______________
tabang
Hope that helpsHTML Code:HTML FORM <form action="submit.php" method="post"> Name : <input type="text" name="name" /><br> Email :<input type="text" name="email" /><br> Message:<textarea name="msg"></textarea><br> <input type="submit" value="Submit"> </form> PHP - submit.php <?php $to = 'youremail@domain.com'; $subject = 'Your Subject here'; $name = $_POST['name']; $email = $_POST['email']; $msg = $_POST['msg']; $body = "Name : " . $name . "/n"; $body .= "Email :" . $email . "/n"; $body .= "Message : /n ===================================== /n"; $body .= $msg; mail($to,$subject,$body); ?>
HTML FORM
<form action="" method="post">
Name : <input type="text" name="name" /><br>
Email :<input type="text" name="email" /><br>
Message:<textarea name="msg"></textarea><br>
<input type="submit" name="submit" value="Submit">
</form>
PHP - submit.php
<?php
$to = 'youremail@domain.com';
$subject = 'Your Subject here';
$name = $_POST['name'];
$email = $_POST['email'];
$msg = $_POST['msg'];
$action = $_POST['submit'];
$body = "Name : " . $name . "/n";
$body .= "Email :" . $email . "/n";
$body .= "Message : /n ===================================== /n";
$body .= $msg;
mail($to,$subject,$body);
?>
this code will help you
@TS: Based on their replies, you can use it either that way.
Similar Threads |
|