This blog will help you in web designing & development like HTML,CSS, HTML5,JAVASCRIPT,PHP,MySQL
<form action="mail_send.php" method="post" name="email"> <table width="354" height="279" > <tr><td>To:</td><td><input type="email" name="to" value="" /> </td></tr> <tr><td>From Name:</td><td><input type="text" name="name" value="" /> </td></tr> <tr><td>Subject:</td><td><input type="subject" name="subject" value="" /> </td></tr> <tr><td>From Email:</td><td><input type="email" name="femail" value="" /> </td></tr> <tr><td colspan="2"><input type="submit" name="submit" value="SEND" /> </td></tr> <tr><td>Message:</td><td><textarea cols="20" name="message" rows="8"> </textarea></td> </tr> </table> </form>
<?php if(isset($_POST[femail])){ $to = $_POST["to"]; $femail = $_POST["femail"]; $name = $_POST["name"]; $subject = $_POST["message"]; $message = wordwrap ($message, 70); mail($to, $subject, $message, "From: $femail\n"); echo "Thank you for sending a mail"; }else{ echo 'mail not send..!!'; } ?>
No comments:
Post a Comment