I have a simple form, when the user entered a code and a mobile number, it should open a new url, here is my code:
<form method='get'>
ID: <input type='text' name='code'><br>
Mobile: <input type='text' name='mobile'><br>
<?php
echo "<button type='button' onclick='location.href=\"http://workflow.abfarmarkazi.ir/phpsql/sms_info.php?id={$_GET['code']}&mob={$_GET['mobile']}\"'>Submit</button>";
?>
</form>
but the values of $_GET
array will not updated, what should I do?