Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
Cam ෂෝ කරන්න ආස කෙල්ලෝ
vip video seller srilanka
Updated:
Today at 2:17 AM
Cam show job
vip video seller srilanka
Updated:
Today at 2:01 AM
Vip විඩීයෝ තියේ හොරෙන් රෙකෝඩ් කරපුවා
vip video seller srilanka
Updated:
Today at 1:26 AM
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Monday at 12:26 PM
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Sunday at 12:41 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
Web Page Designing
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Sameeradigital" data-source="post: 20698981" data-attributes="member: 239413"><p><?php </p><p>if(isset($_POST['submit'])){</p><p> $to = "email@example.com"; // this is your Email address</p><p> $from = $_POST['email']; // this is the sender's Email address</p><p> $first_name = $_POST['first_name'];</p><p> $last_name = $_POST['last_name'];</p><p> $subject = "Form submission";</p><p> $subject2 = "Copy of your form submission";</p><p> $message = $first_name . " " . $last_name . " wrote the following:" . "\n\n" . $_POST['message'];</p><p> $message2 = "Here is a copy of your message " . $first_name . "\n\n" . $_POST['message'];</p><p></p><p> $headers = "From:" . $from;</p><p> $headers2 = "From:" . $to;</p><p> mail($to,$subject,$message,$headers);</p><p> mail($from,$subject2,$message2,$headers2); // sends a copy of the message to the sender</p><p> echo "Mail Sent. Thank you " . $first_name . ", we will contact you shortly.";</p><p> // You can also use header('Location: thank_you.php'); to redirect to another page.</p><p> }</p><p>?></p><p></p><p><!DOCTYPE html></p><p><head></p><p><title>Form submission</title></p><p></head></p><p><body></p><p></p><p><form action="" method="post"></p><p>First Name: <input type="text" name="first_name"><br></p><p>Last Name: <input type="text" name="last_name"><br></p><p>Email: <input type="text" name="email"><br></p><p>Message:<br><textarea rows="5" name="message" cols="30"></textarea><br></p><p><input type="submit" name="submit" value="Submit"></p><p></form></p><p></p><p></body></p><p></html></p></blockquote><p></p>
[QUOTE="Sameeradigital, post: 20698981, member: 239413"] <?php if(isset($_POST['submit'])){ $to = "email@example.com"; // this is your Email address $from = $_POST['email']; // this is the sender's Email address $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $subject = "Form submission"; $subject2 = "Copy of your form submission"; $message = $first_name . " " . $last_name . " wrote the following:" . "\n\n" . $_POST['message']; $message2 = "Here is a copy of your message " . $first_name . "\n\n" . $_POST['message']; $headers = "From:" . $from; $headers2 = "From:" . $to; mail($to,$subject,$message,$headers); mail($from,$subject2,$message2,$headers2); // sends a copy of the message to the sender echo "Mail Sent. Thank you " . $first_name . ", we will contact you shortly."; // You can also use header('Location: thank_you.php'); to redirect to another page. } ?> <!DOCTYPE html> <head> <title>Form submission</title> </head> <body> <form action="" method="post"> First Name: <input type="text" name="first_name"><br> Last Name: <input type="text" name="last_name"><br> Email: <input type="text" name="email"><br> Message:<br><textarea rows="5" name="message" cols="30"></textarea><br> <input type="submit" name="submit" value="Submit"> </form> </body> </html> [/QUOTE]
Insert quotes…
Verification
Nawa warak dahaya keeyada? (Namaya wadi kireema dahaya)
Post reply
Top
Bottom