--- "nickwalsh.rm" <[EMAIL PROTECTED]> wrote:

> Thanks a lot for that. :) However, I'm looking for one that does not 
> use Javascript. I can do a basic javascript and CSS drop down. I have 
> seen that it's possible to do drop down navigation in PHP, but not 
> without having a "go" button. 
> 
> I think the only way to do it is to submit the form when the user 
> clicks on an option in the drop down. I don't know how to do this 
> but, if it's possible, I'll not sleep until I find out. :)
> 
> Thanks for the suggestion anyway.
> 
> Nick :)


Your statement above indicates that you are overlooking a fundamental concept
of PHP.  PHP is a server-side scripting language.  That means that the program
is run completely on the server and the generated HTML code is sent to the
browser.  The act of selecting an item from a menu is a client-side event and
can only be processed by either a client-side language like Javascript or by
submitting a form.

If you are concerned that Javascript won't be running on a browser (more and
more rare these days) you can have Javascript code which submits the form upon
an onChange event and have a "Go" submit button for those who have turned
Javascript off.

James
_____


James D. Keeline
http://www.Keeline.com  http://www.Keeline.com/articles
http://Stratemeyer.org  http://www.Keeline.com/TSCollection

http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Spring Semester Begins Jan 31 -- New Classes Start Every Few Weeks.


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to