PHP redirection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob

    #1

    PHP redirection

    Quick Question here that I cannot figure out. I have a drop down menu
    in a form with certain entries like plumbing painting flooring and so
    on. What I can figure out is php html redirection. When i select
    someting from that drop down menu i wold like the browser to point to
    lets say plumbing.html

    So when a suer select plumbing from drop down menu take them to
    plumbing.html
    and so on for all the options
  • Phillip Parr

    #2
    Re: PHP redirection

    Assuming the 'value' of each of your options is the page to which you wish
    to redirect, you can use this little bit of javascript to make it work...

    <SELECT onChange="locat ion = this.options[this.selectedIn dex].value;">

    Phil


    "Rob" <robrecc@hotmai l.com> wrote in message
    news:b19bd0ef.0 411290117.18352 540@posting.goo gle.com...[color=blue]
    > Quick Question here that I cannot figure out. I have a drop down menu
    > in a form with certain entries like plumbing painting flooring and so
    > on. What I can figure out is php html redirection. When i select
    > someting from that drop down menu i wold like the browser to point to
    > lets say plumbing.html
    >
    > So when a suer select plumbing from drop down menu take them to
    > plumbing.html
    > and so on for all the options[/color]


    Comment

    Working...