Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<pre><code>&lt;?php include("output_scripts.php"); ?&gt; &lt;?php if ($_POST) { print_r($_POST); } else { ?&gt; &lt;form id="form_id"&gt; &lt;table width="100%" cellpadding="10" cellspacing="0"&gt; &lt;tr&gt; &lt;td colspan="3" style="width:99%"&gt; &lt;label&gt;InstallShield Version&lt;/label&gt;&lt;br /&gt; &lt;select name="isVersion" id="isVersion" class="box"&gt; &lt;option selected="2012Spring" value="2012Spring"&gt;2012 Spring&lt;/option&gt; &lt;option value="2012"&gt;2012&lt;/option&gt; &lt;option value="2011"&gt;2011&lt;/option&gt; &lt;option value="2010"&gt;2010&lt;/option&gt; &lt;option value="2009"&gt;2009&lt;/option&gt; &lt;option value="2009 Express"&gt;2009 Express&lt;/option&gt; &lt;option value="IS2008"&gt;2008&lt;/option&gt; &lt;option value="IS 2008 Express"&gt;2008 Express&lt;/option&gt; &lt;/select&gt; &lt;tr&gt; &lt;td colspan="3" style="width:99%"&gt; &lt;br /&gt; &lt;input type="checkbox" name="no_internet" value="no_internet"&gt; no_internet &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="3" style="width:99%"&gt; &lt;br /&gt; &lt;input type="submit" name="submit" value="submit"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; &lt;?php if(isset($_POST['submit'])){ if ($isVersion == "IS2008" &amp;&amp; empty($_POST['no_internet']) || $isVersion == "IS 2008 Express" &amp;&amp; empty($_POST['no_internet'])) { echo $output_macrovision; } elseif ($isVersion == "IS2008" &amp;&amp; isset($_POST['no_internet']) || $isVersion == "IS 2008 Express" &amp;&amp; isset($_POST['no_internet'])) { echo $output_macrovision_no_internet; } elseif (isset($_POST['submit']) &amp;&amp; empty($_POST['no_internet'])) { echo $output_script; } elseif (isset($_POST['no_internet'])) { echo $output_script_no_internet; } } ?&gt; &lt;script&gt; $(function() { $('body').on('submit', '#form_id', function(e) { e.preventDefault(); $.ajax({ url: "test.php", data: $(this).serialize(), type: 'post' }).done(function(response) { $('#main_content').html(response); }); }); }); &lt;/script&gt; &lt;?php } ?&gt; </code></pre>
 

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