<br><br><div class="gmail_quote">On Wed, Jan 21, 2009 at 10:22 AM, Simon Wilcox <span dir="ltr"><<a href="mailto:simonw@digitalcraftsmen.net">simonw@digitalcraftsmen.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Dave Howorth wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Paul Falbe wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
That works thank you very much. Don't know how many google searchs I did<br>
trying to find that out!<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Rodrigo-51 wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Paul, how about a javascript confirm() box?<br>
</blockquote></blockquote>
<br>
... and if the user has Javascript disabled? ????<br>
</blockquote>
<br></div><div class="Ih2E3d">
Or if you have some like Google's ill-fated prefetch running, caching all the links it finds on a page ?<br>
<br>
GETing a link should really only be used when the action is idempotent. If it changes stuff then you ought to use a POST via a form button.<br>
<br>
</div></blockquote><div><br> YES! There are rare cases where a get may enable consequences, but this is not one of them.<br><br><form method="POST" action="/yourapp/account/do_delete"><br><input type="hidden" name="accountid" value="23948234"><br>
<input type="submit" name="delete"<br> value="Delete My Account"<br> onClick="return confirm(<br> 'Are you sure you want to delete your account?');"><br></form><br>
<br> <br></div></div>This both checks if the user really wants to delete (if js is enabled) and also uses a post to delete data via the app.<br clear="all"><br>-- <br>Thanks!<br><br>Wade Stuart<br><br>Phone: 917-363-6164<br>
IM: SpaceMuscles<br><br>