Here is the code: HTML CODE http://jsfiddle.net/9om00gw5/

Php code

<?php $result = mail ("test@test.ru","Анкета Сайта","С сайта была получена анкета с такими данными: Имя: $S_POST[name] Пароль: $S_POST[password], Любите ли экономить время: $S_POST[time], Сколько часов в день спит: $S_POST[sleep] часов Свои нароботки в экономии времени $S_POST[text]"); if ($result) { echo "<p>Сообщение отправлено успешно!</p>"; } else { echo "<p>Сообщение не отправлено</p>"; } ?> 

RESULT

X-Sendmail-Cmdline: sendmail.pl -t -i To: test@test.ru Subject: Site Profile X-PHP-Originating-Script: 0: formdata.php A profile with the following data was received from the site: Name: Password: , Do you like to save time: how many hours a day sleeps: hours Your foremost in saving time

Data is not transmitted. What's wrong?

  • one
    $_POST , not $S_POST ? - etki 4:05 pm
  • Shoot ...) ATP + - mi4i

0