Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try this i hope its work for you </p> <p>Page1.php</p> <pre><code>&lt;?php @session_start(); //$session=session_id(); //$_SESSION['session']=$session; //print_r($_SESSION); ?&gt; &lt;html&gt; &lt;body&gt; &lt;form action="oopssurvey.php" method="post"&gt; Where do you work?&lt;br/&gt; &lt;Input type ="radio" name="location" value="USA" &lt;?php if(isset($_SESSION['location']) == 'USA') echo "checked='checked'" ?&gt;/&gt; In the United states&lt;br/&gt; &lt;Input type ="radio" name="location" value="India" &lt;?php if(isset($_SESSION['location']) == 'India') echo "checked='checked'" ?&gt;/&gt; Outside of the United states&lt;br/&gt; &lt;input name="Operation1" type="submit" value="saveandresume" /&gt; &lt;input name="Operation2" type="submit" value="next" /&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Page2.php</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;form action="oopssurvey.php" method="post"&gt; In my work group, we are actively involved in making our work processes more effective and efficient (simpler, faster, etc.) using ACE.&lt;br/&gt; &lt;Input type ="radio" name="effective" value="Agree" &lt;?php if(isset($_SESSION['effective']) == 'Agree') echo "checked='checked'" ?&gt;/&gt; Agree&lt;br/&gt; &lt;Input type ="radio" name="effective" value="Agreenordisagree" &lt;?php if(isset($_SESSION['effective']) == 'Agreenordisagree') echo "checked='checked'" ?&gt;/&gt; Neither Agree nor Disagree&lt;br/&gt; &lt;Input type ="radio" name="effective" value="disagree" &lt;?php if(isset($_SESSION['effective']) == 'disagree') echo "checked='checked'" ?&gt;/&gt; Disagree&lt;br/&gt; I have received the training I need to understand and implement ACE in my work group.&lt;br/&gt; &lt;Input type ="radio" name="training" value="Agree" &lt;?php if(isset($_SESSION['training']) == 'Agree') echo "checked='checked'" ?&gt;/&gt; Agree&lt;br/&gt; &lt;Input type ="radio" name="training" value="Agreenordisagree" &lt;?php if(isset($_SESSION['training']) == 'Agreenordisagree') echo "checked='checked'" ?&gt;/&gt; Neither Agree nor Disagree&lt;br/&gt; &lt;Input type ="radio" name="training" value="disagree" &lt;?php if(isset($_SESSION['training']) == 'disagree') echo "checked='checked'" ?&gt;/&gt; Disagree&lt;br/&gt; All employees at the company are treated fairly regardless of differences.&lt;br/&gt; &lt;Input type ="radio" name="treated" value="Agree" &lt;?php if(isset($_SESSION['treated']) == 'Agree') echo "checked='checked'" ?&gt;/&gt; Agree&lt;br/&gt; &lt;Input type ="radio" name="treated" value="Agreenordisagree" &lt;?php if(isset($_SESSION['treated']) == 'Agreenordisagree') echo "checked='checked'" ?&gt;/&gt; Neither Agree nor Disagree&lt;br/&gt; &lt;Input type ="radio" name="treated" value="disagree" &lt;?php if(isset($_SESSION['treated']) == 'disagree') echo "checked='checked'" ?&gt;/&gt; Disagree&lt;br/&gt; Sufficient effort is made to get the opinions and thoughts of the people who work here.&lt;br/&gt; &lt;Input type ="radio" name="effort" value="Agree" &lt;?php if(isset($_SESSION['effort']) == 'Agree') echo "checked='checked'" ?&gt;/&gt; Agree&lt;br/&gt; &lt;Input type ="radio" name="effort" value="Agreenordisagree" &lt;?php if(isset($_SESSION['effort']) == 'Agreenordisagree') echo "checked='checked'" ?&gt;/&gt; Neither Agree nor Disagree&lt;br/&gt; &lt;Input type ="radio" name="effort" value="disagree" &lt;?php if(isset($_SESSION['effort']) == 'disagree') echo "checked='checked'" ?&gt;/&gt; Disagree&lt;br/&gt; &lt;input name="Operation3" type="submit" value="saveandresume" /&gt; &lt;input name="Operation4" type="submit" value="next" /&gt; &lt;input name="Operation1" type="submit" value="back" /&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Page3.php Or oopssurvey.php</p> <pre><code>&lt;?php @session_start(); //include 'classperson.php'; if(isset($_POST['Operation1'])) { if($_POST['Operation1'] == 'saveandresume'){ $_SESSION['location'] = $_POST['location']; echo "Please save the link inorder to continue your survey http://bonnie/~jnagesh/SampleSurvey/OOPS/oopspage2.php"; }else if($_POST['Operation1'] == 'back') { include "page1.php"; } } else if(isset($_POST['Operation2'])){ include "page2.php"; } elseif(isset($_POST['Operation3'])){ $_SESSION['effective'] = $_POST['effective']; $_SESSION['training'] = $_POST['training']; $_SESSION['treated'] = $_POST['treated']; $_SESSION['effort'] = $_POST['effort']; echo "Please save the link inorder to continue your survey later http://bonnie/~jnagesh/SampleSurvey/NextandBackButtons/page3.php"; } elseif(isset($_POST['Operation4'])) { if($_POST['Operation4'] == 'next'){ echo "welcome to form3"; //include "oopspage3.php"; }else{ /*$_SESSION['effective'] = $effective; $_SESSION['effective'] = $_POST['effective']; $_SESSION['training'] = $training; $_SESSION['training'] = $_POST['training']; $_SESSION['treated'] = $treated; $_SESSION['treated'] = $_POST['treated']; $_SESSION['effort'] = $effort; $_SESSION['effort'] = $_POST['effort'];*/ } } ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload