Note that there are some explanatory texts on larger screens.

plurals
  1. POgetting url value in input box
    text
    copied!<p>In my html page, i have links like this</p> <pre><code>&lt;table width="100%" border="0" cellspacing="4" cellpadding="4"&gt; &lt;tr&gt; &lt;td&gt;&lt;a href="ApplicationRegister.php?plan=trial"&gt;&lt;img src="images/box4.png" width="230" height="300" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="ApplicationRegister.php?plan=plan1"&gt;&lt;img src="images/box1.png" width="230" height="300" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="ApplicationRegister.php?plan=plan2"&gt;&lt;img src="images/box2.png" width="230" height="300" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;a href="ApplicationRegister.php?plan=plan3"&gt;&lt;img src="images/box3.png" width="230" height="300" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>When i click on any one of the image, it will go to ApplicationRegister.php page with plan= corresponding values. </p> <p>In my ApplicationRegister.php i have a registration form </p> <pre><code>&lt;form action="emailconfirmation.php" method="post" name="form1" id="form1" onsubmit="return Validate();"&gt; Company Name: &lt;input type="text" name="CompanyName" style="width:230px; height:20px;" /&gt;&lt;br /&gt;&lt;br /&gt; Company E-mail : &lt;input type="text" name="Companyemail" style="width:230px; height:20px;" /&gt;&lt;br /&gt;&lt;br /&gt; Company Contact &lt;input type="text" name="CompanyContact" style="width:230px; height:20px;" /&gt;&lt;br /&gt;&lt;br /&gt; Company Address: &lt;input type="text" name="CompanyAddress" style="width:230px; height:20px;" /&gt;&lt;br /&gt;&lt;br /&gt; &lt;input type="hidden" name="form_submitted" value="1"/&gt; &lt;input type="submit" value="REGISTER" name="submit" /&gt; &lt;/form&gt; </code></pre> <p>In this page it should take the value from url like plan=trail or plan1... whatever there in the url. then while submitting all the values should be submitted along with these form data.</p> <p>How to achieve this? Please help.</p>
 

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