title: PHP get select option value
body: <p>I have a javascript function that I have to switch it into php.</p>
  
  <p>But in php I don't know how to make it work.</p>
  
  <p>The function is getting value in a select box in the page and convert it into a url link
  when submit is pressed.</p>
  
  <p>In javascript it's easy you can get the value of a select box without submitting or refreshing the page and put the value directly into the function.</p>
  
  <p>But in PHP I can't get the select value without refreshing the page.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;form name="form" method="post" action="&lt;?php getUrlValues('car', '31231h3', quantity='***') ?&gt;"
  &lt;select name="quantity"&gt;
     &lt;option value="1"&gt;&lt;/option&gt;
     &lt;option value="2"&gt;&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Whatever I select in the select box will directly display into the function.
  getUrlValues('car', '31231h3', quantity=option value</p>
  
  <p>Is there a way to do that?
  Without refreshing page.</p>