Hello I have developed a form , i want the user to only input number if a user input any alphabet or symbol ad submit the form the error must appear on the same page,
i have done this with form action but i want the error to be shown on the same page not to the new page.
btw, i have used is_numeric function to detect the numeric
here is the form,
<form method="post" action="sign.php">
<input type="text" name="first">
<select name="select">
<option>+</option>
<option>-</option>
<option>x</option>
<option>/</option>
<option>%</option>
<input type="text" name="second">
<input type="submit" name="submit" value="submit">
</form>