Note that there are some explanatory texts on larger screens.

plurals
  1. POLoading Multiple pages on the same page in PHP contd
    text
    copied!<p>This post is in continuation of the post in this URL <a href="https://stackoverflow.com/questions/15183248/loading-multiple-pages-on-the-same-page-in-php">Loading Multiple pages on the same page in PHP</a></p> <p>Sorry, I feel this is a new query, so I thought of posting a new question..</p> <p>Thanks guys for ur inputs there.. My core problem remains the same </p> <p>"I have a basic HTML page named cwt.html which has all the checkboxes and submit button. Once the Submit button is clicked, the next page(say processing1.php) associated for the selected check-boxes(of cwt.html) should also be loaded in the same page.."</p> <p>I used Load function call, that relatively fixed the issue, but I am being faced by another significant problem in the code.. It would be great if you could help me with that..</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt; Conditions We Treat &lt;/title&gt; &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"&gt;&lt;/script&gt; &lt;script&gt; $("#submit1").click(function(){ $("#form1").load('processing1.php'); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id = form1&gt; &lt;input type = "checkbox" name = "sickness[]" value = "Nausea"&gt;Nausea&lt;/input&gt;&lt;br/&gt; &lt;input type = "checkbox" name = "sickness[]" value = "Constipation"&gt;Constipation&lt;/input&gt;&lt;br/&gt; &lt;input type = "checkbox" name = "sickness[]" value = "vomiting"&gt;Vomiting&lt;/input&gt;&lt;br/&gt; &lt;div id = "submit1"&gt;&lt;input type = "submit" name = "submit1" value = "submit"&gt;&lt;/input&gt;&lt;/div&gt;&lt;br/&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>The thing I need to do is, when I click submit, it should go to another page and process with this page's values.. </p> <p>The limitation I find here is </p> <ol> <li><p>When I declare form action, it goes to that specific page instead of loading in this page, as in if I give <code>&lt;form name = "i1" action = "processing1.php" method = "get"&gt;,</code> control goes to processing1.php and contents are loaded in a new page</p></li> <li><p>If I dont give form action, it works in the intended way, but I am unable to preserve the data of this page..</p></li> </ol>
 

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