Akku
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Akku
-
-
Hi there,
Is there any mistake in the following code?
<?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>";
}
}
?>
PHP mail
in PHP
Posted
i didn't receive the mail, is there any problem with the string concatenation or do i have to include any new line properties(if so, i don't know how)?