Welcome To Snipplr


Everyone's Recent Snippets Tagged form



1 2 3 4 5 ... 9
Add a login form to your wordpress themes frontend.
0 1783 posted 14 years ago by prwhitehead
Simply define your POSTURL and POSTVARS in name = value string format. It will post the form.
0 1787 posted 14 years ago by kumar_sekhar
No need to create a seperate function for this one. Just one line to clear the default value on click and leave the value when it has been altered.
1 1457 posted 14 years ago by dyteq
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 2104 posted 14 years ago by kidmizere
Often you supply a default value in a text field which you want to automatically clear when the user enters the field. This will do that operation and fill the field with a default value.
0 1494 posted 15 years ago by jimbo
Clear a field on entry if the default text matches a supplied value. Generic to any field.
0 1298 posted 15 years ago by jimbo
Set TimerInterval to 1000 Add a command button called cmdUndo, which will be enabled the moment the form is edited.
0 1426 posted 15 years ago by heislekw
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 1858 posted 15 years ago by chopbust
0 1284 posted 15 years ago by tonatiuh
If your HTML form fields have a 'watermark' default value, it will be removed when the field is focussed and replaced if focus is lost (and the user has left the field blank). To use give your form field a class of 'default-value'
3 1998 posted 15 years ago by f6design
0 1587 posted 15 years ago by nosmk
Wstawia gwiazdki na końcu, za widgetem.
0 3323 posted 15 years ago by godrar
See also the [plain JavaScript version](http://snipplr.com/view/41717/default-value-for-input-fields/).
1 1629 posted 15 years ago by riddla
0 1239 posted 15 years ago by adriano
0 1417 posted 15 years ago by adriano
0 1270 posted 15 years ago by adriano
0 2309 posted 15 years ago by alik
I thought this was pretty elegant code and wanted to share it with anyone who found it useful.
0 1295 posted 15 years ago by mattneary
0 1366 posted 15 years ago by danhanly
Example written 01/13/2011 The following code shows how to implement functionality in your Windows Forms application, such that you'll be able to open a file that is dragged and dropped onto your program's form. This behavior is often desirable fo...
0 1449 posted 15 years ago by kyrathaba
Make sure you CSS paths are correct in your HTML.
0 1927 posted 15 years ago by rts_dev
KeyPreview property must be set to Yes
0 1645 posted 15 years ago by heislekw
0 1125 posted 15 years ago by ischenkodv
1 2 3 4 5 ... 9