I have this form, which i need to modify in order to confirm it before submission.
echo '<form method="post" action="coupon.php">
<input type="hidden" name="id_user"
value="'.$id_user.'">
<input type="hidden" name="points"
value="250">
<input type="hidden" name="form_secret" id="form_secret" value="'.$_SESSION['FORM_SECRET'].'" />
<div id="p2">
<input type="submit" value="250"></div>
</form>';
I tried to implement many jquery modal boxes (i don’t need plain javascript because i need to add some design) but the form even if there was a popup continued to process.
Can you suggest me something?
Thanks.
Here’s my approach to this: