Jump to content

Akku

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Akku

  • Rank
    Newbie
  1. Akku

    PHP mail

    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)?
  2. 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>";
                }
                
            }
            
            ?>

  3. Akku

    PHP mail

    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>"; } } ?>
×