By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,719 Members | 1,445 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,719 IT Pros & Developers. It's quick & easy.

Open a page with php

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Sat, 8 Nov 2003 14:27:21 -0700, "Rick" <vf*****@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 (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #2

P: n/a

"Rick" <vf*****@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

Jul 17 '05 #3

P: n/a
I can't believe it was that easy thank again.
"Rick" <vf*****@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

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.