|
Незнание не есть отсутствие головы, но это так... к слову...
Накидал простенько:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body>
<form action="<?php echo $PHP_SELF ?>" method="post" name="name">
<textarea name="dopinfo" cols="52" rows="5" class="fieldsform"></textarea>
<input name="Submit" type="submit" class="fieldsform" value="Отправить данные">
</form>
<?php
if($_SERVER['REQUEST_METHOD'] == POST){
header('Location: index.php'); // редиректим на страницу со спасибо.
}
?>
</body>
</html>
Ошибки:
Notice: Use of undefined constant POST - assumed 'POST' in P:\test.php on line 13
Warning: Cannot modify header information - headers already sent by (output started at P:\test.php:8) in P:\test.php on line 14
__________________
я бы вас понял, будь я поглупее
|