Posted by Oli Filth on 01/02/06 19:02
tochiromifune said the following on 02/01/2006 16:54:
> Hello,
>
> I have 2 pages and I would like to pass a variable from page 1 to page 2
> using the select tag in a form.
>
> On page 1:
> <form action="page2.php" method="post" id="form1">
> <select name="select"> ...
>
> On page 2:
> <?
>
> echo $_post['select'];
> ?>
> ...
>
> Gives the following error: "Notice: Undefined variable: _post in c:
> \documents and settings\page2.php on line 3"
>
PHP variable names are case-sensitive. It should be $_POST, not $_post.
--
Oli
Navigation:
[Reply to this message]
|