Have you tried echoing out the value on the resulting page, i.e. the page that
parses the form?
echo $_POST['name'];
What does that give you?  I don't see anything that really jumps out at me with
your code.
-Brad


"Beauford.2002" wrote:

> Hi,
>
> I'm sending this to both lists as I'm not sure where the problem is, but I
> believe it is an issue with my HTML form. Here's the problem:
>
> I have a drop-down menu form on my webpage with employee names in it. When I
> choose a name and click submit it gets passed to a php page which accesses a
> mysql database and displays information about that employee.
>
> The problem is that the form is not sending the employee name to the php
> page. If I insert the name in the php page manually, it works fine, so the
> problem appears to be with the form.
>
> Can someone help me out here - a sample of my code is below. I'm not sure
> how to explain this, but whatever gets sent to the PHP page has to be one
> variable - i.e. if I choose John, then the variable that gets sent to the
> PHP should have the value John, if I choose Mary, the value of the variable
> should be Mary. Hope this makes sense.
>
> TIA
>
> <P><CENTER><FORM NAME="Employees">
> <SELECT NAME="name">
> <OPTION SELECTED VALUE=""></OPTION>
> <OPTION VALUE="John"</OPTION>John
> <OPTION VALUE="Mary"</OPTION>Mary
> </SELECT>
> <INPUT TYPE="submit" VALUE="Submit">
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


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

Reply via email to