Saving a file uploaded using POST
Category: Forms
.API’s general
HTTP API requests There four basic HTTP requests a client can make are: GET: To retrieve a resource.POST: To create a new resource.PUT: To edit or update an existing resource.DELETE: To delete a resource.
Array Values
Creating a field that will give an array when submitted Form element Form handler
Converting Form Text Fields
filter_var() function Returns the input string filtered into the required typ, or FALSE if it was unable to perform the sanitization (e.g. due to illegal characters etc) See here for all the available filter options. Example – INT Sanitising for HTML from a form POST If server magic quotes is turned on then it will add / […]
Simple Site Log In Form
In the head of each page add this Note this must be before any html header are sent (i.e. in php code before html output) Use this as the log in page Use this as an optional log out page
Getting Form Values
Get POST values
Refil Form Values
//Allow form to be refilled if there is an error foreach($_POST as $key=>$value) { $$key = $value; }