470,855 Members | 1,309 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

How do I use a pull-down menu with PHP? Or can I?

Is there a way for PHP to see what is selected in a pull-down menu. So
that i can use a switch statement to display certain information. If
not how can I combine javascript with it to work.
Jul 17 '05 #1
1 1667
JAS
Phillip Russell wrote:
Is there a way for PHP to see what is selected in a pull-down menu. So
that i can use a switch statement to display certain information. If
not how can I combine javascript with it to work.


If you talking about a pull-down menu in a regular form then sure.
Create your form, send the content to a page and then use $_POST or
$_GET variables (depending on your form) to retrieve the value ...

http://us2.php.net/manual/en/reserve...variables.post

J
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Richard T. Cunningham | last post: by
2 posts views Thread by Terry Milan | last post: by
5 posts views Thread by Julia Baresch | last post: by
5 posts views Thread by kuljitsingh | last post: by
1 post views Thread by richardkreidl | last post: by
3 posts views Thread by Baron Samedi | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.