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
Handmade Character Soft Toys
anil1961
Updated:
Yesterday at 2:11 PM
Bodim.lk out now !
Manoj Suranga Bandara
Updated:
Sunday at 3:05 AM
Power Lifting Lever Belt
SkullVamp
Updated:
Jun 13, 2026
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Jun 13, 2026
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Jun 11, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
PHP Help ekak one..
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="melanxpress" data-source="post: 14808225" data-attributes="member: 119978"><p>තව පොඩි හෙල්ප් එකක් ඕනේ <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /></p><p>මම දැන් ඒ දැම්මේ Contact Page එකේ PHP එක. එකේ ඔක්කොම හරියටම වැඩ කරනවා <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /></p><p>තව FORMs 4ක් තියෙනවා. ඒවගෙත් වෙනස් කරා. ඒවත් වැඩ හරියටම..</p><p></p><p>මට තියෙන ප්රශ්නේ මෙකයි <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /> Contact Page එකේ Mail එකේ FROM එකට Senderගේ Name එක එනවා. එත් අනික් ඒවගේ එන්නේ නැනේ.එන්නේ Unknown Sender කියලා .<img src="/styles/default/xenforo/smilies/default/sad.gif" class="smilie" loading="lazy" alt=":(" title="Sad :(" data-shortname=":(" /> මොකද්ද වෙනස් වෙන්න ඕනේ කියලා කියන්න පුලුවන්ද? </p><p></p><p><img src="http://farm9.staticflickr.com/8258/8651623393_8372245842_b.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>මෙන්න Contact eke PHP eka</p><p></p><p><span style="font-size: 10px"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></span></p><p><span style="font-size: 10px"><html xmlns="http://www.w3.org/1999/xhtml"></span></p><p><span style="font-size: 10px"><head></span></p><p><span style="font-size: 10px"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"><title>Email Form</title></span></p><p><span style="font-size: 10px"></head></span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"><body></span></p><p><span style="font-size: 10px"><?php</span></p><p> <span style="font-size: 10px">$name=$_POST['name'];</span></p><p> <span style="font-size: 10px">$email=$_POST['email'];</span></p><p> <span style="font-size: 10px">$phone=$_POST['phone'];</span></p><p> <span style="font-size: 10px">$message=$_POST['message'];</span></p><p> <span style="font-size: 10px"></span></p><p><span style="font-size: 10px"> </span></p><p><span style="font-size: 10px"></span></p><p> <span style="font-size: 10px">// you can specify which email you want your contact form to be emailed to here</span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"> $toemail = "designnine.melan@gmail.com";</span></p><p><span style="font-size: 10px"> $subject = "Ana Enterprises - Contact Form";</span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"> $headers = "MIME-Version: 1.0\n"</span></p><p><span style="font-size: 10px"> ."From: \"".$name."\" <".$email.">\n"</span></p><p><span style="font-size: 10px"> ."Content-type: text/html; charset=UTF-8";</span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"> $body = </span></p><p><span style="font-size: 10px"> </span></p><p><span style="font-size: 10px"> </span></p><p><span style="font-size: 10px"> "Name: ".$name."<br>\n"</span></p><p><span style="font-size: 10px"> ."Email: ".$email."<br>\n"</span></p><p><span style="font-size: 10px"> ."Phone: ".$phone."<br>\n"</span></p><p><span style="font-size: 10px"> ."Message: ".$message."<br>\n";</span></p><p><span style="font-size: 10px"> </span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"> </span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"> mail($toemail, $subject, $body, $headers);</span></p><p><span style="font-size: 10px"> echo "<script type='text/javascript'></span></p><p><span style="font-size: 10px"><!--</span></p><p><span style="font-size: 10px">window.location = 'thankyou.html'</span></p><p><span style="font-size: 10px">//--></span></p><p><span style="font-size: 10px"></script>";</span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px">?></span></p><p><span style="font-size: 10px"></body></span></p><p><span style="font-size: 10px"></html></span></p><p></p><p></p><p>මෙන්න හරියට වැඩ කරන්නේ නැති එකක PHP එක</p><p></p><p><span style="font-size: 10px"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></span></p><p><span style="font-size: 10px"><html xmlns="http://www.w3.org/1999/xhtml"></span></p><p><span style="font-size: 10px"><head></span></p><p><span style="font-size: 10px"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"><title>Email Form</title></span></p><p><span style="font-size: 10px"></head></span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"><body></span></p><p><span style="font-size: 10px"><?php</span></p><p> <span style="font-size: 10px">$value01=$_POST['value01'];</span></p><p><span style="font-size: 10px"> $value02=$_POST['value02'];</span></p><p><span style="font-size: 10px"> $value03=$_POST['value03'];</span></p><p><span style="font-size: 10px"> $value04=$_POST['value04'];</span></p><p><span style="font-size: 10px"> $value05=$_POST['value05'];</span></p><p><span style="font-size: 10px"> $last=$_POST['last'];</span></p><p><span style="font-size: 10px"> $value07=$_POST['value07'];</span></p><p><span style="font-size: 10px"> $comment=$_POST['comment'];</span></p><p><span style="font-size: 10px"> </span></p><p><span style="font-size: 10px"></span></p><p> <span style="font-size: 10px">// you can specify which email you want your contact form to be emailed to here</span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"> $toemail = "designnine.melan@gmail.com";</span></p><p><span style="font-size: 10px"> $subject = "Ana Enterprises - Buy Car";</span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"> $headers = "MIME-Version: 1.0\n"</span></p><p><span style="font-size: 10px"> ."From: \"".$name."\" <".$email.">\n"</span></p><p><span style="font-size: 10px"> ."Content-type: text/html; charset=iso-8859-1\n";</span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"> $body = </span></p><p><span style="font-size: 10px"> </span></p><p><span style="font-size: 10px"> </span></p><p><span style="font-size: 10px"> "Manufacture: ".$value01."<br>\n"</span></p><p><span style="font-size: 10px"> ."Model: ".$value02."<br>\n"</span></p><p><span style="font-size: 10px"> ."Year: ".$value03."<br>\n"</span></p><p><span style="font-size: 10px"> ."Mileage: ".$value04."<br>\n"</span></p><p><span style="font-size: 10px"> ."First Name: ".$value05."<br>\n"</span></p><p><span style="font-size: 10px"> ."Last Name: ".$last."<br>\n"</span></p><p><span style="font-size: 10px"> ."Phone: ".$value07."<br>\n"</span></p><p><span style="font-size: 10px"> ."Comment: ".$comment."<br>\n";</span></p><p><span style="font-size: 10px"> </span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"> </span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px"> mail($toemail, $subject, $body, $headers);</span></p><p><span style="font-size: 10px"> echo "<script type='text/javascript'></span></p><p><span style="font-size: 10px"><!--</span></p><p><span style="font-size: 10px">window.location = 'thankyou.html'</span></p><p><span style="font-size: 10px">//--></span></p><p><span style="font-size: 10px"></script>";</span></p><p><span style="font-size: 10px"></span></p><p><span style="font-size: 10px">?></span></p><p><span style="font-size: 10px"></body></span></p><p><span style="font-size: 10px"></html></span></p></blockquote><p></p>
[QUOTE="melanxpress, post: 14808225, member: 119978"] තව පොඩි හෙල්ප් එකක් ඕනේ :) මම දැන් ඒ දැම්මේ Contact Page එකේ PHP එක. එකේ ඔක්කොම හරියටම වැඩ කරනවා :) තව FORMs 4ක් තියෙනවා. ඒවගෙත් වෙනස් කරා. ඒවත් වැඩ හරියටම.. මට තියෙන ප්රශ්නේ මෙකයි :) Contact Page එකේ Mail එකේ FROM එකට Senderගේ Name එක එනවා. එත් අනික් ඒවගේ එන්නේ නැනේ.එන්නේ Unknown Sender කියලා .:( මොකද්ද වෙනස් වෙන්න ඕනේ කියලා කියන්න පුලුවන්ද? [IMG]http://farm9.staticflickr.com/8258/8651623393_8372245842_b.jpg[/IMG] මෙන්න Contact eke PHP eka [SIZE="2"]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Email Form</title> </head> <body> <?php $name=$_POST['name']; $email=$_POST['email']; $phone=$_POST['phone']; $message=$_POST['message']; // you can specify which email you want your contact form to be emailed to here $toemail = "designnine.melan@gmail.com"; $subject = "Ana Enterprises - Contact Form"; $headers = "MIME-Version: 1.0\n" ."From: \"".$name."\" <".$email.">\n" ."Content-type: text/html; charset=UTF-8"; $body = "Name: ".$name."<br>\n" ."Email: ".$email."<br>\n" ."Phone: ".$phone."<br>\n" ."Message: ".$message."<br>\n"; mail($toemail, $subject, $body, $headers); echo "<script type='text/javascript'> <!-- window.location = 'thankyou.html' //--> </script>"; ?> </body> </html>[/SIZE] මෙන්න හරියට වැඩ කරන්නේ නැති එකක PHP එක [SIZE="2"]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Email Form</title> </head> <body> <?php $value01=$_POST['value01']; $value02=$_POST['value02']; $value03=$_POST['value03']; $value04=$_POST['value04']; $value05=$_POST['value05']; $last=$_POST['last']; $value07=$_POST['value07']; $comment=$_POST['comment']; // you can specify which email you want your contact form to be emailed to here $toemail = "designnine.melan@gmail.com"; $subject = "Ana Enterprises - Buy Car"; $headers = "MIME-Version: 1.0\n" ."From: \"".$name."\" <".$email.">\n" ."Content-type: text/html; charset=iso-8859-1\n"; $body = "Manufacture: ".$value01."<br>\n" ."Model: ".$value02."<br>\n" ."Year: ".$value03."<br>\n" ."Mileage: ".$value04."<br>\n" ."First Name: ".$value05."<br>\n" ."Last Name: ".$last."<br>\n" ."Phone: ".$value07."<br>\n" ."Comment: ".$comment."<br>\n"; mail($toemail, $subject, $body, $headers); echo "<script type='text/javascript'> <!-- window.location = 'thankyou.html' //--> </script>"; ?> </body> </html>[/SIZE] [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom