<html> <head> <title>Confirm Page</title> </head> <body > <form method="post" action="submit.php"> <label for="name">Name</label><input type="" size="20" name="name"><br> <label for="city">City </label><input type="" size="20" name="city"><br> <input type="Submit" value="Submit"> </form> </body> </html>
<html> <head> </head> <body> <h2>Details Successfully Send....</h2> <?php $name_=$_POST['name']; $city_=$_POST['city']; echo 'Name='.$name_.'<br>'; echo 'City='.$city_.'<br>'; $msg=$name_.' living in '.$city_; $subject='Information transfer using PHP'; $to='abcd@xyz.com'; $from='27ds@gmail.com'; mail($to,$subject,$msg,'From:'.$from); ?> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)