Tirukoilur

Ancient Temple City

Latest Post

There are 2 methods to send HTML form data from 1 Page to another or HTML page to server side in PHP.

POST
It is a method in which data gets sent using packet which is not visible to any user on web-browser. it is secured compared to GET method.

GET
It is a method in which data gets sent with URL which is visible to user in address-bar of any web-browser. So, it’s not secure as POST method.


Now, There are total three methods to catch this data in PHP.

POST: It can catch the data which is sent using POST method.
GET: It can catch the data which is sent using GET method.
REQUEST: It can catch the data which is sent using both POST & GET methods.

Use the following code to check the sent status of php mail function.


<?php
$to = "xyz@somedomain.com";
$subject = "This is subject";

$message = "This is HTML message.";
$message .= "This is headline.";

$header = "From:abc@somedomain.com \r\n";
$header .= "Cc:afgh@somedomain.com \r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html\r\n";

$retval = mail ($to,$subject,$message,$header);

if( $retval == true ) {
echo "Message sent successfully...";
}else {
echo "Message could not be sent...";
}

?>

MKRdezign

{facebook#http://www.facebook.com/GTVCreations} {twitter#http://www.twitter.com/GTVCreations} {google-plus#http://www.google.com} {pinterest#http://www.pinterest.com} {youtube#http://www.youtube.com} {instagram#http://www.instagram.com}

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget