Instead of passing them, why not include them?
switch($sub)
{
case 's1':
include "j2.php";
break;
case 's2':
include "j3.php";
break;
case 's3':
include "j4.php";
break;
}
Unless you have to go physically to those pages. In which case, save to session variable:
<?php
session_start();
//I SUBMIT a.phhp PAGE IN THIS PAGE//
$f=$_REQUEST['1'];//1st input field value of a.php page
$s=$_REQUEST['2'];//1st input field value of a.php page
$t=$_REQUEST['3'];//1st input field value of a.php page
$sub=$_REQUEST['s'];
$arr=array('a'=>$f,"b"=>$s,"c"=>$t);
$_SESSION['store'] = $arr;
switch($sub)
{
case 's1':
header("Locatiob: j2.php");
exit;
break;
case 's2':
header("Locatiob: j3.php");
exit;
break;
case 's3':
header("Locatiob: j4.php");
exit;
break;
}
?>
You then pick up the session var in those pages. Also don't use $_REQUEST, use either $_POST or $_GET.
//edit
you don't need the breaks in the switch.
diafol
Keep Smiling
10,672 posts since Oct 2006
Reputation Points: 1,632
Solved Threads: 1,514
Skill Endorsements: 57
diafol
Keep Smiling
10,672 posts since Oct 2006
Reputation Points: 1,632
Solved Threads: 1,514
Skill Endorsements: 57