• June 3, 2017
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    
    <body><?php
    
    //--------------------------Set these paramaters--------------------------
    
    
    $subject = 'email from homepage'; // Subject of email sent to you.
    $emailadd = 'red_mosquitoe@hotmail.com'; // Your email address. This is where the form information will be sent.
    $url = 'thankyou.html'; // Where to redirect after form is processed.
    $req = '0'; // Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.
    
    // --------------------------Do not edit below this line--------------------------
    $text = "Results from form:\n\n"; 
    $space = ' ';
    $line = '
    ';
    foreach ($_POST as $key => $value)
    {
    if ($req == '1')
    {
    if ($value == '')
    {echo "$key is empty";die;}
    }
    $j = strlen($key);
    if ($j >= 99)
    {echo "Name of form element $key cannot be longer than 99 characters";die;}
    $j = 99 - $j;
    for ($i = 1; $i <= $j; $i++)
    {$space .= ' ';}
    $value = str_replace('\n', "$line", $value);
    $conc = "{$key}:$space{$value}$line";
    $text .= $conc;
    $space = ' ';
    }
    
    mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
    
    $email = $_POST['email']; // use their addy instead of yours
    $subject = 'Thanks for the submission'; // change subject
    $text = '
    Dear client,
    
    Thank you for your Brian Tracy Mega Guru event &quot;Double your customers and profits&quot; registration.
    
    Our customer service staff will be in touch shortly to confirm your registration.<br />
    
    For now, please enjoy your free ebook as our gift to you.<br />
    
    Kind Regards,
    ATD'; // change text
    mail($email, $subject, $text, 'From: '.$emailadd.''); // send another one out
    
    
    ?>
    
    
    
    
    <form method="post" action="feeback.php">
    
    <table class="box" align="center" border="0" cellpadding="5" cellspacing="0" width="521" id="table2">
    <tr>
    <td colspan="3">&nbsp;</td>
    </tr>
    <tr>
    <td bgcolor="#ffffff" width="200" height="31">Name:</td>
    <td bgcolor="#ffffff" width="546" height="31" colspan="2"><input name="name" size="30" type="text"></td>
    </tr>
    <tr>
    <td bgcolor="#ffffff" width="200">E-mail Address:</td>
    <td bgcolor="#ffffff" width="301" colspan="2"><input name="email" size="30" type="text"></td>
    </tr>
    <tr>
    <td bgcolor="#ffffff" width="200">Questions or Comments:</td>
    <td bgcolor="#ffffff" width="301" colspan="2"><textarea name="message" rows="5" cols="35"></textarea></td>
    </tr>
    <tr>
    <td colspan="3" class="smalltext" bgcolor="#ffffff">
    <input value="Submit" type="submit" style="float: right"><br>
    </td>
    </tr>
    </table>
    </body>
    </html>


เวอไนน์ไอคอร์ส

ประหยัดเวลากว่า 100 เท่า!






เวอไนน์เว็บไซต์⚡️
สร้างเว็บไซต์ ดูแลเว็บไซต์

Categories