|
|
#1
| |||
| |||
|
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 By miOOt |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Link Building is the most important part of Optimizing a site | marketraise int | osCommerce SEO | 2 | 20th Apr 10 12:00 AM |
| confirm submit | gilbertsavier | HTML & Javascript Howtos | 0 | 30th Jun 09 07:53 PM |
| How to Submit to Search Engines and Directories | paul123 | SEO vBulletin | 0 | 18th Feb 06 10:13 AM |
| How to Submit to Search Engines and Directories | paul123 | SEO vBulletin | 0 | 15th Feb 06 07:35 PM |