PHPHell Newsletter

Name:
Email:
We have 29 guests online

Latest Comments


Javascript Snipplet: Confirm Form Submission Before Submitting
Wednesday, 28 September 2011 19:25
If you wanted the user to confirm form submission before it was submitted, add the following to your submit button:
onClick="if(confirm('Are you sure?')) return true; return false;"
Example:
<input type="submit" name="Done" value="Done" onClick="if(confirm('Are you sure?')) return true; return false;">

25% Off Hosting: use coupon code PHPDiscount and get 25% off your first month at HostGator.



Comments (0)Add Comment

Add a Comment
smaller | bigger

security code
Write the displayed characters


busy
Last Updated on Wednesday, 28 September 2011 19:31
English Arabic Czech Dutch Filipino French Greek Hebrew Icelandic Italian Macedonian Portuguese Spanish Swedish