Sexy forms with jQuery Uniform styles: Selects (Drop downs) Checkboxes Radio buttons File Upload inputs
Tag Archives: form
PHP Form examples
PHP Form
PHP $_POST Array Empty
Fellow PHP programmers, I encountered a most peculiar problem today that I must share. I had a situation where someone was sending me POST data but the PHP $_POST array was empty. I setup a debugging script to see the GET and POST arrays and sure enough everything was empty. I asked my friend Google …
Prevent Duplicate Form Submission
You can use the method below to prevent duplicate form submission or form re-submission using PHP. This method is simple to implement and does not require JavaScript.
Clear File Input Using Javascript
Jquery empty – form field
<form name=”newsletter-form” id=”newsletter-form” method=”post”> <input id=”email” name=”email” placeholder=”insert email” type=”text”/> <button type=”submit”>NEWSLETTER</button> </form> $(“#email”).val(”);