redirect with php buttons in existing item-post.php
Get the solution ↓↓↓Solution:
You can change action url which is in the form using javascript
// call to change_action() function onChange event
<select id="AdsType" name="AdsType" onChange="change_action();" >
<option value="Standard">Standard</option>
<option value="Premium">Premium</option>
</select>
// change action url
<script language="javascript">
function change_action()
{
if(document.getElementById("AdsType").value=="Standard")
{
form_name.action="www.site.com/complete.php";
}
else
{
form_name.action="www.site.com/pay.php";
}
}
</script>
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: an exception occurred in the driver: could not find driver
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.