Скрипт

Авторизация
 
  • Автор

    Дайте скрипт для отправки данных на мыло!!!
    кто даст тому + поставлю!
    И еще буду блогодарен!!
    Я + поставлю есле он будет работать!

    Добавлено через 04:27 мин.
    Ap-AP


  • Google > Email form sender



  • <?php 
    if(isset($_POST["sendmail"])) 
    { 
     $to = "[email protected]"; 
     $name = substr(htmlspecialchars(trim($_POST['name'])), 0, 1000); 
     $email = substr(htmlspecialchars(trim($_POST['email'])), 0, 1000); 
     $skype = substr(htmlspecialchars(trim($_POST['skype'])), 0, 1000); 
     $icq = substr(htmlspecialchars(trim($_POST['icq'])), 0, 1000); 
     $message = substr(htmlspecialchars(trim($_POST['message'])), 0, 1000000); 
     $title = "Game24Host Billing"; 
     $content = "Имя: $name\nE-Mail: $email\nSkype: $skype\nICQ: $icq\n\n$message"; 
     mail($to, $title, $content); 
     echo '<script language="javaScript">document.location.href ="/index.php";</script>'; 
     exit; 
    } 
    ?> 
    <form action="" method=post> 
    <p><b>Ваше имя:</b><br> 
    <input class="text" name="name" type="text" size="40"><br> 
    <b>Ваш электронный адрес:</b><br> 
    <input class="text" name="email" type="text" size="40"><br> 
    <b>Ваш логин в Skype:</b><br> 
    <input class="text" name="skype" type="text" size="40"><br> 
    <b>Ваш UIN в системе ICQ:</b><br> 
    <input class="text" name="icq" type="text" size="40"><br> 
    <b>Ваше сообщение:</b><br> 
    <input class="text" name="message" type="text" size="40"><br><br> 
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="button" type="submit" value="Отправить" name="sendmail"/> <input type="reset" class="button" value="Очистить"><br> 
    </p></form>
    
Авторизация