php методы $_POST[''] не работает.
Добавлено: 2011-11-23 12:03:09
есть index.php
там форма:
вроде все есть...
так в custompricastie.php
делаю, чтобы просто просмотреть что передало в $_POST
ругается на
в чем дело?
там форма:
Код: Выделить всё
<------><table border="1" width="100%" cellspacing="0" cellpadding="0">
<------><!-- <form id="form" name="form" action="custompricastie.php"> -->
<------><form id="form_start" name="form_start" method="post" action="custompricastie.php">
<------><------><tr width="100%">
<------><------><------><------><------><td><p align="center" style="position:relative;left:5px;">
<------><------><------><------><------><------><input type="submit" style="width:80%" value="ОБУЧАЮЩИЙ ТЕСТ ДЛЯ ВСЕХ КЛАССОВ (7-11)" />
<------><------><------><------><------></td>
<------><------></tr>
<------><------><tr>
<------><------><------><------><------><td><p align="center" style="position:relative;left:5px;">
<------><------><------><------><------><------><input type="submit" style="width:80%" value="ТЕСТЫ ДЛЯ 7ГО КЛАССА" />
<------><------><------><------><------></td>
<------><------></tr>
<------><------><tr>
<------><------><------><------><------><td><p align="center" style="position:relative;left:5px;">
<------><------><------><------><------><------><input type="submit" style="width:80%" value="ТЕСТЫ ДЛЯ 8ГО КЛАССА" />
<------><------><------><------><------></td>
<------><------></tr>
<------><------><tr>
<------><------><------><------><------><td><p align="center" style="position:relative;left:5px;">
<------><------><------><------><------><------><input type="submit" style="width:80%" value="ТЕСТЫ ДЛЯ 9ГО КЛАССА" />
<------><------><------><------><------></td>
<------><------></tr>
<------><------><tr>
<------><------><------><------><------><td><p align="center" style="position:relative;left:5px;">
<------><------><------><------><------><------><input type="submit" style="width:80%" value="ТЕСТЫ ДЛЯ 10ГО КЛАССА" />
<------><------><------><------><------></td>
<------><------></tr>
<------><------><tr>
<------><------><------><------><------><td><p align="center" style="position:relative;left:5px;">
<------><------><------><------><------><------><input type="submit" style="width:80%" value="ТЕСТЫ ДЛЯ 11ГО КЛАССА" />
<------><------><------><------><------></p></td>
<------><------></tr>
<------></form>
<------></table>
так в custompricastie.php
делаю, чтобы просто просмотреть что передало в $_POST
Код: Выделить всё
<?php
echo $_POST[''];
echo $_REQUEST[''];
?>
где строки 47 и 48 и есть echo $_POST['']; echo $_REQUEST[''];Notice: Undefined index: in /usr/local/www/apache22/tests/fiz/custompricastie.php on line 47
Notice: Undefined index: in /usr/local/www/apache22/tests/fiz/custompricastie.php on line 48
в чем дело?