help with onclick and php
Posted: Wed Apr 30, 2008 12:24 am
~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
my code here works..but the query doesnt..........
the alert happens but the query wont work..
~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
my code here works..but the query doesnt..........
the alert happens but the query wont work..
Code: Select all
<form>
<input type=button value="Approve"
onClick="if(confirm('Are you sure you want to approve?'))
{ <?php $queryupdate; ?>
alert ('Registration has been approved.');
window.location='main.php'
}
else
{
alert ('Hindi inapprove.');
window.location='home.php'
}" >
</form>~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: