hello all. i need some form , for example:
if type "test1" open ?step=2 and info for test1
if type "test2" open ?step=2 and info for test2
if type "test3" open ?step=2 and info for test3
this my code now
PHP Code:<?PHP
// start the session
session_start();
if(isset($HTTP_POST_VARS['step']))
{
$smolf3d['step'] = $HTTP_POST_VARS['step'];
}
elseif(isset($HTTP_GET_VARS['step']))
{
$smolf3d['step'] = $HTTP_GET_VARS['step'];
}
else
{
$smolf3d['step'] = '1';
}
if(!isset($step) || $step == 'Step1')
{
?>
<table width="60%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="6" align="center" valign="middle">
<h1 align="center">some info here</h1>
<p> </p>
<table cellSpacing="0" cellPadding="6" width="100%" border="0">
<form action="?step=2" method="post" >
<tr align="middle">
<td width="33%"><input type="radio" value="1" name="plan"> test1</td>
<td width="34%"><input type="radio" value="2" name="plan"> test2</td>
<td width="33%"><input type="radio" value="3" name="plan"> test3</td>
</tr>
<tr align="middle">
<td colSpan="3" width="742">
<input class="butt" type="submit" value="next" name="next"></td>
</tr>
</form>
</table>
<?PHP
}
elseif($step == '2')
{
?>
<form action="$_SERVER['PHP_SELF']" method="post" >
<table width="450" border="0" align="center" cellpadding="2" cellspacing="1">
<tr>
here some form for test 2
<tr>
<td colspan="2"><div align="center">
<input class="butt" type="button" value="Next" style="width:150px" onClick="top.location.href='?step=3'; return'';" >
</div></td>
</tr>
</table>
</form>
<form action="$_SERVER['PHP_SELF']" method="post" >
<table width="450" border="0" align="center" cellpadding="2" cellspacing="1">
<tr>
here some form for test 2
<tr>
<td colspan="2"><div align="center">
<input class="butt" type="button" value="Next" style="width:150px" onClick="top.location.href='?step=3'; return'';" >
</div></td>
</tr>
</table>
</form>
<form action="$_SERVER['PHP_SELF']" method="post" >
<table width="450" border="0" align="center" cellpadding="2" cellspacing="1">
<tr>
here some form for test 2
<tr>
<td colspan="2"><div align="center">
<input class="butt" type="button" value="Next" style="width:150px" onClick="top.location.href='?step=3'; return'';" >
</div></td>
</tr>
</table>
</form>
<?
}
?>
<?PHP
//
if(isset($HTTP_POST_VARS['step']))
{
$smolf3d['step'] = $HTTP_POST_VARS['step'];
}
elseif(isset($HTTP_GET_VARS['step']))
{
$smolf3d['step'] = $HTTP_GET_VARS['step'];
}
else
{
$smolf3d['step'] = '1';
}
if($step =='1')
{
}
if($step =='2')
{
}
?>





Bookmarks