Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged form



1 2 Next »
Test controller for custom Form_validation class
0 644 posted 15 years ago by djenniex
the user sees the confirmation page immedeateley. this is helpful if the mail() function takes some time
0 823 posted 15 years ago by miebach
from http://www.w3schools.com/php/php_mail.asp
0 799 posted 15 years ago by rwczippy
This snippet allows you to update multiple rows of a database using a single form in one easy click
0 1328 posted 15 years ago by daveismyname
I use this to activate basic forms for clients. Just make sure your form input names are named appropriately. Any inputs such as phone or fax that are separated into different inputs should have the same name.
1 927 posted 15 years ago by dmautz1
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 667 posted 15 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 939 posted 15 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 743 posted 15 years ago by montanaflynn
Use this to generate a select box
1 724 posted 15 years ago by erichelgesen
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 1460 posted 15 years ago by jadedbat
[quote]$_SERVER['HTTP_REFERRER']'s problem is that can be spoofed, but it's better than nothing if you really want that.[/quote]
1 1024 posted 15 years ago by luizlopes
Simple PHP tutorial on how to use isset.
0 1406 posted 15 years ago by 1man
I always forget how to do this...
2 785 posted 16 years ago by davidsword
Allows to customize the search results page.
0 638 posted 16 years ago by aleprieto
Makes Drupal Advanced Search form non collapsible and expanded by default.
0 686 posted 16 years ago by aleprieto
Sometimes you need to have an ability to show limited number of elements in your select objects or sort elements by name or so. I figured out that this feature was added to object_select_tag later so that not everybody knows about that. This featureâ...
1 685 posted 17 years ago by ggb2g
Step 1: Copy and paste the e-mail Form Code into a 'contact.php' page (must be a html/php page on a server that allows php!). Step 2: Copy n paste the sendeail.php code into a new file. Change the YourEmail section to include your email address. T...
3 1295 posted 17 years ago by jonhenshaw
great to validate and process a form in the same page
5 1858 posted 17 years ago by valcartei
0 795 posted 18 years ago by whitetiger
admin panel for php scripts with a login form elaborated by a function.php page, then an upload form with canc option
2 1288 posted 18 years ago by dandyna
3 1161 posted 18 years ago by smilylion
The form method must be post and the enctype set as it is below. The hidden input for MAX_FILE_SIZE must also be included. The value is the max file size (in bytes?).
4 909 posted 18 years ago by pckujawa
1 2 Next »