Ok Let me be more clear:
This is my 1st page:
subscribe.php
PHP Code:
<?php
session_start();
$package=array('1001','1006','1007');
$package[0]="images/subscribe now.gif";
$package[1]="images/subscribe now.gif";
$package[2]="images/subscribe now.gif";
$_SESSION['1001']=$package[0];
$_SESSION['1006']=$package[1];
$_SESSION['1007']=$package[2];
echo "<table align=\"center\" >";
echo "<tr>";
echo "<td align=\"center\" ><img src=\"images/logo1.jpg\"></img></td>";
echo "</tr>";
echo "<tr>";
echo "<td align=\"center\" ><img src=\"images/home.gif\"></img></td>";
echo "</tr>";
echo "</table>";
echo "<table width=\"73.8%\">";
echo "<tr>";
echo "<td width=\"44.5%\"> </td>";
echo "<td align=\"left\" width=\"9.8%\"><a href=\"user.php?package=1001\"><img src=\"{$_SESSION['1001']}\" border=\"0\"></img></a></td>";
echo "<td align=\"left\" width=\"9.8%\"><a href=\"user.php?package=1006\"><img src=\"{$_SESSION['1006']}\" border=\"0\"></img></a></td>";
echo "<td align=\"left\" width=\"9.8%\"><a href=\"user.php?package=1007\"><img src=\"{$_SESSION['1007']}\" border=\"0\"></img></a></td>";
echo "</tr>";
echo "</table>";
?>
<html><head><title>Subscribe Now</title></head>
<body >
</body>
</html>
this is my 2nd page.
user.php
PHP Code:
<?php
ob_start();
session_start();
include("include/db.php");
include("include/common.php");
//include("function.php");
//$ppackage="1002";
//$_SESSION['1002']=$ppackage;
$_GET['package'];
$_SESSION[$_GET['package']];
if($_GET['package'] == 1006){$package='1006';
}
if($_GET['package'] == 1001){$package='1001';
}
if($_GET['package'] == 1007){$package='1007';
}//{echo"$package";}
if (!isset($_POST['submitok'])):
?>
<!DOCTYPE html PUBLIC "-//W3C/DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="styles/style.css" type="text/css">
<Script>
function doubleConfirm()
{
if (!confirm('R u sure to post the form.')) return false;
if (!confirm('Please check again the form for errors.')) return false;
return true;
}
</script>
<title> New User Registration Form </title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1>
</head>
<body bgcolor="#4572da"><center>
<?php include ("forms/subsform.php")?>
</body>
</html>
<?php
else:
$dbcnx = dbConnect('db');
$name=mysql_real_escape_string($_POST['nmanme']);
$custic=mysql_real_escape_string($_POST['nmic']);
?>
<?php
header("location:user.php?package=".$_GET['package']."&cpackage=".$_GET['1002']);
exit;
endif;
?>
This is the 3rd page.
childform.php
PHP Code:
<?php
ob_start();
session_start();
$pack = $_GET['pack'];
$_SESSION['pack'] = $pack;
include('forms/form1.php');
?>
So how can i set the urls now...
That it shuould work properly.
Thanks.
Bookmarks