I have a javascript function that I have to switch it into php.
But in php I don't know how to make it work.
The function is getting value in a select box in the page and convert it into a url link when submit is pressed.
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.
But in PHP I can't get the select value without refreshing the page.
Example:
<form name="form" method="post" action="<?php getUrlValues('car', '31231h3', quantity='***') ?>"
<select name="quantity">
<option value="1"></option>
<option value="2"></option>
</select>
Whatever I select in the select box will directly display into the function. getUrlValues('car', '31231h3', quantity=option value
Is there a way to do that? Without refreshing page.