I think Keith hits this one on the head --
Without an ACTION directive in the FORM definition, you're at the mercy
of the browser where it gets sent (if in fact it's sent anywhere) ...
You might find some browsers work (defaulting to resubmit to the current
page), whereas others will silently fail sending the page nowhere.
On Wed, Dec 11, 2002 at 04:36:39PM -0500, Beauford.2002 wrote:
> 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.
> <P><CENTER><FORM NAME="Employees">
> <SELECT NAME="name">
> <OPTION SELECTED VALUE=""></OPTION>
> <OPTION VALUE="John"</OPTION>John
> <OPTION VALUE="Mary"</OPTION>Mary
> <INPUT TYPE="submit" VALUE="Submit">
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
Hank Marquardt <[EMAIL PROTECTED]>
GPG Id: 2BB5E60C
Fingerprint: D807 61BC FD18 370A AC1D 3EDF 2BF9 8A2D 2BB5 E60C
*** Web Development: PHP, MySQL/PgSQL - Network Admin: Debian/FreeBSD
*** PHP Instructor - Intnl. Webmasters Assn./HTML Writers Guild
*** See http://www.hwg.org/services/classes
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php