Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged form



1 2 Next »
Test controller for custom Form_validation class
0 85 posted 10 years ago by djenniex
the user sees the confirmation page immedeateley. this is helpful if the mail() function takes some time
0 116 posted 10 years ago by miebach
from http://www.w3schools.com/php/php_mail.asp
0 96 posted 10 years ago by rwczippy
This snippet allows you to update multiple rows of a database using a single form in one easy click
0 184 posted 10 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 118 posted 10 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 78 posted 11 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 114 posted 11 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 87 posted 11 years ago by montanaflynn
Use this to generate a select box
1 97 posted 11 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 221 posted 11 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 85 posted 11 years ago by luizlopes
Simple PHP tutorial on how to use isset.
0 204 posted 11 years ago by 1man
I always forget how to do this...
2 87 posted 11 years ago by davidsword
Allows to customize the search results page.
0 54 posted 11 years ago by aleprieto
Makes Drupal Advanced Search form non collapsible and expanded by default.
0 60 posted 11 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 82 posted 12 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 157 posted 12 years ago by jonhenshaw
great to validate and process a form in the same page
5 348 posted 12 years ago by valcartei
0 108 posted 13 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 148 posted 13 years ago by dandyna
3 140 posted 13 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 113 posted 13 years ago by pckujawa
1 2 Next »