Re: [php] passing variables doesn't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 25 Oct 2006 10:19:24 +0200, Max Belushkin wrote:

> Whatever form information you want to pass has to be part of the form.
> 
>> WILLEMS Wim (BMB) wrote:
>> <select name=database size=1>
> 
> In the second script, the value of this will be in $_POST["database"].

... which will contain absolutely nothing, since you haven't provided any
value: <option>blabla</option> does not contain a value that can be sent
to the next page.

And, don't build the link to the database (and possibly spawn an error)
when you're right into your HTML and just printed <select> to the screen.
If the connection fails, the error will most likely not show up, you'll
have an empty select box, we'll get a new question from you etc.

Ivo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux