Open a page with php

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'...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-08-2003
Rick
 
Posts: n/a
Default Open a page with php

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


Reply With Quote
  #2 (permalink)  
Old 11-08-2003
Marouen
 
Posts: n/a
Default Re: Open a page with php


"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

Reply With Quote
  #3 (permalink)  
Old 11-08-2003
Andy Hassall
 
Posts: n/a
Default Re: Open a page with php

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)
Reply With Quote
  #4 (permalink)  
Old 11-08-2003
Rick
 
Posts: n/a
Default Re: Open a page with php

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
>
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:03 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0