have 4questions
Question1--->
checkbox1
checkbox2
checkbox3
if checked will go to Question 2 display a set of options on 2 depends on checkbox is check will display the option for that check box if combine will dispay combine option
if checkbox 1 is check go to 2 display option for checkbox1
if checkbox 2 is check go to 2 display option for checkbox2
if checkbox 3 is check go to 2 display option for checkbox3
Question2--->
new set checkboxes for 1
new set checkboxes for 2
new set checkboxes for 3 plus 1 sepecial selction checkbox
then on Question 2 if check on a special selection checkbox will go to Question 2B
Question 2B--->
radio1
radio2
which has 2 radiobuttons after select and submit will go to Question 2C which has
3 radiobuttons
Question 2C--->
radio1
radio2
radio3
if radiobutton 1 selected will display sometext
if radiobutton 2 selected will go to Question3
if radiobutton 3 selected will go to Question4
well this is waht i have so far stuck at the page 3
i jsut wondering if there is an easier way to do this, what im doing seem to be so complicated
Code: Select all
====1.php==========
<?php
echo '<pre>';
print_r($_POST);
echo '</pre>';
// start the session
session_start();
header("Cache-control: private"); //IE 6 Fix
// Get the user's input from the form
$question1 = $_POST['question1'];
// Register session key with the value
$_SESSION['question1'] = $question1;
?>
<table><tr><td valign="top" class="head1" width="200"> </td><td>
<br><br>
Question 1:
<br><form action="2.php" method="post">
<input name="question1[A]" type="checkbox" value="A">A
<input name="question1[B]" type="checkbox" value="B">B
<input name="question1[C]" type="checkbox" value="C">C
<br><br>
<input type="submit" value="Next »">
</form>
<?php include_once("progressbar.inc"); ?>Code: Select all
====1.php==========
<?php
echo '<pre>';
print_r($_POST);
echo '</pre>';
// start the session
session_start();
header("Cache-control: private"); //IE 6 Fix
// Get the user's input from the form
$question1 = $_POST['question1'];
// Register session key with the value
$_SESSION['question1'] = $question1;
?>
<table><tr><td valign="top" class="head1" width="200"> </td><td>
<br><br>
Question 1:
<br><form action="2.php" method="post">
<input name="question1[A]" type="checkbox" value="A">A
<input name="question1[B]" type="checkbox" value="B">B
<input name="question1[C]" type="checkbox" value="C">C
<br><br>
<input type="submit" value="Next »">
</form>
<?php include_once("progressbar.inc"); ?>Code: Select all
====1.php==========
<?php
echo '<pre>';
print_r($_POST);
echo '</pre>';
// start the session
session_start();
header("Cache-control: private"); //IE 6 Fix
// Get the user's input from the form
$question1 = $_POST['question1'];
// Register session key with the value
$_SESSION['question1'] = $question1;
?>
<table><tr><td valign="top" class="head1" width="200"> </td><td>
<br><br>
Question 1:
<br><form action="2.php" method="post">
<input name="question1[A]" type="checkbox" value="A">A
<input name="question1[B]" type="checkbox" value="B">B
<input name="question1[C]" type="checkbox" value="C">C
<br><br>
<input type="submit" value="Next »">
</form>
<?php include_once("progressbar.inc"); ?>