title: How to pass parameters to a URL from a select form?
body: <p>I want to pass values from a <strong>select form</strong> to a URL in order to connect to an external website using iframe solutions.</p>
  
  <p>I'm very to new to .PHP &amp; JavaScript. Please help me out.</p>
  
  <p>This is the form I created to get data from users to pass into a specific URL.</p>
  
  <pre><code>&lt;form action="selectcourier.php" method="GET"&gt;
  &lt;h1&gt;Select courier service&lt;/h1&gt;
  
  &lt;select&gt;
   &lt;option value="Select"&gt;Select Courier Service&lt;/option&gt;
   &lt;option value="1"&gt;DTDC&lt;/option&gt;
   &lt;option value="2"&gt;AFL&lt;/option&gt;
   &lt;option value="3"&gt;BlueDart&lt;/option&gt;
  &lt;/select&gt;
  
  Consignment Number: &lt;input type="text" name="cNum"&gt;&lt;br&gt;
  
  &lt;center&gt;&lt;input type="submit"&gt;&lt;/center&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>selectcourier.php</p>
  
  <pre><code>&lt;body&gt;
  &lt;form&gt;&lt;center&gt;&lt;h3&gt;&lt;a href="http://dtdc.com/tracking/tracking_results.asp?action=track&amp;sec=tr&amp;ctlActiveVal=1&amp;Ttype=awb_no&amp;strCnno=H60874238&amp;GES=N&amp;TrkType2=awb_no&amp;strCnno2=&lt;?php echo $_GET["cNum"]; ?&gt;" target="ifrm"&gt; CONFIRM &lt;/a&gt;&lt;h3&gt;&lt;/center&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;iframe id="ifrm" width=300 height=300 seamless src="http://example.com/"&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>My question:</p>
  
  <p>Hope you have understood that I'm trying to give <strong>all courier tracking service</strong> right from my website using an iframe. But here I'm unable to differentiate the appropriate URLs for different types of Courier Service to pass the value (cNum) and open that web link in an iframe.</p>
  
  <p>I have all the URLs of all courier services.</p>
  
  <p>Now how can I differentiate them to pick up the appropriate URL when a Courier Service is selected by the User?</p>
  
  <p>Kindly help me, please. Thanks.</p>