sorin
|
| Posted: 04/16/2002, 1:35 AM |
|
Hello!
I'm trying something different in CodeCharge.I'd like to open different pages for different parameter values.
Let's say that I transmit the parameter "sid" which can have the value 1, 2 or 3 and I need to open page1.php, page2.php or page3.php according to "sid" value.
As you can see, I'm interested in a PHP solution.
Help is always greatly appreciated.
|
|
|
 |
Alex Alexapolsky
|
| Posted: 04/16/2002, 1:47 AM |
|
The page that get this sid parameter could have the following code
in Page/Open event :
global $sid;
switch ($sid) {
case "1" : header("Location: page1.php");break;
case "2" : header("Location: page2.php");break;
case "3" : header("Location: page3.php");break;
}
|
|
|
 |
|