-
Posts
31,575 -
Joined
-
Last visited
-
Days Won
77
justsomeguy's Achievements
w3schools Guru (7/7)
1.1k
Reputation
Single Status Update
See all updates by justsomeguy
-
hi there,
the following code is not executing
<?php
if(isset($_POST['submit']))
{
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$email=$_POST['email'];
$phone=$_POST['phone'];
$cname=$_POST['cname'];
$reason=$_POST['reason'];
$web=$_POST['web'];
$smart=$_POST['smart'];
$im=$_POST['im'];
$cd=$_POST['cd'];
$ms=$_POST['ms'];
$con='Firstname:'.$fname."<br>Lastname:".$lname."<br>Email:".$email."<br>Phone:".$phone."<br>Company:".$cname."<br>Reason:".$reason."<br>".$web."<br>".$smart."<br>".$im."<br>".$cd."<br>".$ms;
$to="aaa@bbb.com";
$sub="invoice";
mail($to,$sub,$con);
if( mail($to,$sub,$con))
{
echo "<script type='text/javascript'>alert('submitted successfully!')</script>";
}
}
?>