Welcome To Snipplr


Everyone's Recent Snippets Tagged form



1 ... 5 6 7 8 9 10
0 532 posted 14 years ago by sixmedia
Just a little bit of code if u are interested in using links for form submission. I'm aware of the dangers of using links in this case, but don't really care. They're way easier to style.
0 2033 posted 14 years ago by wjbrown
This is a long over due update to my db insert building function. Please not that the function is the important part the code below is just prove that it works... l:-)
1 503 posted 14 years ago by brownrl
This is a good way to validate form input from PHP, in essence this could be a blue print for your forms.
5 759 posted 14 years ago by brownrl
This is a short and sweet snippet that will save the users form input after PHP runs validation and returns false. Very good for User Experience!
0 571 posted 14 years ago by montanaflynn
ändern der Klasse bei checkbox aktion
1 892 posted 14 years ago by localhorst
Use this to generate a select box
1 570 posted 14 years ago by erichelgesen
0 453 posted 14 years ago by philokezzar
The markup would look like this: <code> &lt;input class="swap-value" type="text" value="Search"/ &gt;</code>
2 675 posted 14 years ago by keith
This adds a class to focused form elements (helpful for IE6/7), as well as adds a class to the input's parent (in this case, named "form-field").
1 594 posted 14 years ago by dougunderscorenelson
https://www.chrisjmendez.com/2004/09/27/jquery-converting-all-the-items-in-a-select-element-into-a-string-array/
0 921 posted 14 years ago by chrisaiv
In IE6 (+7?) the fieldset width doesn't automatically resize to fit the width of the parent container.
1 570 posted 15 years ago by hotdiggity
JavaScritp Form Validation Framework to validate form fields on the fly, no programming knowledge required.
0 557 posted 15 years ago by clickfind
0 634 posted 15 years ago by cbetta
1 642 posted 15 years ago by jclewell
A simple to use framework for a contact form. This is missing some serious validation and such but is a good startin' point for any simple contact form. The input field named 'botty' is an input field we hide with css.. if data is sent to the ha...
7 1232 posted 15 years ago by jadedbat
2 540 posted 15 years ago by nhutto
A very easy to use script for validating your forms.
2 647 posted 15 years ago by sarfraznawaz2005
A simple form with rounded corners, and hopefully not too much markup. You'll need some kind of graphic for the corners of course - I used 20px corners for this. It's a bit rough, would love to know what some other people think.
1 770 posted 15 years ago by superdeluxesam
Click on an input field with a prefilled value, if that value equals the default then select it, if not leave it as it was. Relies on jQuery.
2 1134 posted 15 years ago by 1man
[quote]$_SERVER['HTTP_REFERRER']'s problem is that can be spoofed, but it's better than nothing if you really want that.[/quote]
1 819 posted 15 years ago by luizlopes
Simple PHP tutorial on how to use isset.
0 1121 posted 15 years ago by 1man
Grab http://blog.kissmetrics.com/common/images/required.png as example for a required image . NOTE: You probably don't want to use this trcik, but rather go for the defacto standard of a red asterisk to mark something required. An asterisk is lang...
1 619 posted 15 years ago by berkes
I came across this little snippet... and thought it was rather nice.
0 583 posted 15 years ago by gembry
1 ... 5 6 7 8 9 10