Reply to Re: Passing variable thru select

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация