Welcome To Snipplr

Everyone's Recent PHP Snippets Tagged form

« Prev 1 2
Simple script to send SMS throught our HTTP API (Afilnet) with PHP. Steps: 1.- Register in Afilnet. http://www.afilnet.com/anunciante/registrar.php 2.- Login and get credits (10 free) to send SMS 3.- Use this script or html form example include in...
1 552 posted 7 years ago by Afilnet
Translate non alphanumeric characters into an underscore. Doesn't create double underscores if there's two spaces in a row. Also turns name to lowercase. Use with trim to avoid spaces at front or end.
0 723 posted 7 years ago by flatearthcomms
Select aus vorhandenen Daten des Datenbankobjektes
0 447 posted 7 years ago by ulfinger
0 370 posted 10 years ago by etechblog
WP Functions
0 465 posted 11 years ago by silentpro
Within your view, you place something like: <?=>session->flashdata('feedback') ?>
0 337 posted 11 years ago by screon
Add a login form to your wordpress themes frontend.
0 547 posted 11 years ago by prwhitehead
Simply define your POSTURL and POSTVARS in name = value string format. It will post the form.
0 520 posted 11 years ago by kumar_sekhar
This generates a simple insert statement for mysql based on all the variables in $_GET or $_POST using a simple page. It does not do the inserts although that is a simple addition - just builds and displays your insert statement.
1 670 posted 11 years ago by kidmizere
I made this function to render hidden form elements in a new page based on what was sent from the last form. This function can be used to preserve input from a long multiple-page form. What does it do: 1. Go through all the submitted POST eleme...
0 484 posted 11 years ago by chopbust
0 894 posted 11 years ago by alik
I thought this was pretty elegant code and wanted to share it with anyone who found it useful.
0 456 posted 11 years ago by mattneary
0 326 posted 11 years ago by ischenkodv
0 536 posted 11 years ago by rliverman
This was a fix for the form that allowed me to automatically replace the text when I focused on area. Find the file text.php inside modules. Replace line 89 with this code.
0 489 posted 11 years ago by gera3d
Here is a little bit of code I use from time to time to make a generic some what safe date selector for forms. I wanted something easy, small, and not relying on images, jquery, libraries, etc... Most importantly I wanted the date that was selected t...
0 395 posted 11 years ago by brownrl
0 429 posted 11 years ago by sorinspanu
0 353 posted 11 years ago by metoikos
formulário para enviar para os emails de acordo com o departamento escolhido no Select
0 348 posted 11 years ago by rbulgueroni
run as callback from form_validation->setrules ex: $this->form_validation->set_rules('cc_number','Credit Card #','required|max_length[20]|callback_alpha_dash_space');
0 403 posted 12 years ago by myke
On Zend Framework you can add options on Select Element on Form.php or Controller Action, and after you can disable it, on Form.php or Controller.php too.
1 677 posted 12 years ago by postNuKe
After i saw this snippet http://snipplr.com/view/33790/form-country-code-select-with-if-selected-test/ i wanted to make the code better :D To make it easier to maintain
0 531 posted 12 years ago by cigraphics
1 513 posted 12 years ago by daipratt
Frequently I like to make data more user friendly, so while I make it easy for them to add a date as a shorthand format (mm/dd/yyyy) I like to return it as something easier to digest (Day of Month in Year, etc). This is the simplest way to do that I'...
0 424 posted 12 years ago by xekonic
Resizing fields using a custom module You could also resize the field using a custom module. For example, if you created mysite.module, you could use something like this to reduce the field size to 30 characters
4 561 posted 12 years ago by marcelodornelas
1 334 posted 12 years ago by petrafull
« Prev 1 2