OZONE Asylum
Forums
DHTML/Javascript
confirm submit
This page's ID:
31077
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi there, I want to update my form that makes me delete items from my site. The nw part should be a alert to confirm the submit. I got it this far: Code: <script type="text/javascript"> function areyoureallysure() { var messageb = "Are you sure?"; if (confirm(messageb)) return true; else return false; } </script> PHP Code: <? echo" <form id=\"BestellingVerwijderen\" action=\"details.php\" method=\"post\" name=\"BestellingVerwijderen\" enctype=\"multipart/form-data\"> <input type=\"hidden\" name=\"n\" value=\"$n\"> <input type=\"hidden\" name=\"d\" value=\"d\"> <table width=\"500px\" border=\"0px\" cellspacing=\"0px\" cellpadding=\"5px\"> <tr> <td align=\"center\" class=\"groen\" colspan=\"2\"> <a href=\"javascript:areyoureallysure();\" class=\"pointer\"> <font color=\"red\">Klik hier om deze uitgave te verwijderen.</font></a>"; echo"</td> </tr> </table> </form> "; ?> The alert is there.. but no mather what I click (cancel or aprove) it will return to the page it comes from instead of further submit the form and delete the part I wanted to.... Thanks & Regards Lokananth Live chat http://www.mioot.com
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »