Hi I am trying to use printf to delete a record by redirecting but i would like an alet first.
Heres what ive come up with but it does not work.
printf ("<td align=middle><b><input type=button value='$textbutton[14]' onClick=\"return confirm('$textconfirm[3]')\"location.href=\"%s\">%s</a></b></td>", "commands.php?command=2&cid=$cid&vid=".$vehicles["vid"],"");
The alert works but nothing happens after that .
If I change the line to read
printf ("<td align=middle><b><input type=button value='$textbutton[14]' onClick=location.href=\"%s\">%s</a></b></td>", "commands.php?command=2&cid=$cid&vid=".$vehicles["vid"],"");
It works fine but obviously no alert msg...
Can I do two events with a onlick? if so how?
Thanks for any help