This is a discussion on Open a page with php within the PHP Language forums, part of the PHP Programming Forums category; I need to be able to open different pages depending upon which botton was selected on a form. I can'...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
"Rick" <vfrrick@cox.net> a écrit dans le message news: Gddrb.7101$Zb7.3098@fed1read01... > I need to be able to open different pages depending upon which botton was > selected on a form. I can't find how to do this any help would be great. > > Thanks > Use switch function switch($page) { case "membres": include("membres.html"); break; case "register": include("register.html"); break; case "contact": include("contact.html"); break; default: include("main.html"); break; } Marouen |
|
|||
|
On Sat, 8 Nov 2003 14:27:21 -0700, "Rick" <vfrrick@cox.net> wrote:
>I need to be able to open different pages depending upon which botton was >selected on a form. I can't find how to do this any help would be great. A form only has a single action attribute. So you can't do this without multiple forms, or an intermediate page doing a redirect. -- Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk) Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space) |
|
|||
|
I can't believe it was that easy thank again.
"Rick" <vfrrick@cox.net> wrote in message news:Gddrb.7101$Zb7.3098@fed1read01... > I need to be able to open different pages depending upon which botton was > selected on a form. I can't find how to do this any help would be great. > > Thanks > > |