Php Functions To Clean User Input Snippets


This example code showing how to use PHP Functions to clean User Input

22 January, 2011   

The example here is if you had a form on a website that when submitted, needed to use that information to go to a special URL where the login information was all appeneded to the URL. You could have the form post with method GET, but that is limited to the typical ?variable=foo&variable2=bar format.

04 May, 2011   

Need to people out if they have been inactive for too long? Do it with this piece of code. Introduction ----------------------- This takes 3 functions to complete the inactive session task. 1. We need to check if the person is actually logged in using our isLogged function 2. We need the function to check the time the page loaded, and when...

07 April, 2013   

A simple example code for user login with a login form and database query

30 March, 2011   

Need to unzip a file? this function can do that for you. It is reccomended that the functions.php file and the file that exicutes the unzip function are NOT in the same directory as the zip files. unzip ( string $zipfile , string $newLocation ) zipfile gets the name of the current zip file. newLocation is where you want to store all the...

30 March, 2011   

Need to people out if they have been inactive for too long? Do it with this piece of code. This takes 3 functions to complete the inactive session task. 1. We need to check if the person is actually logged in using our isLogged function 2. We need the function to check the time the page loaded, and when the last page was loaded 3. We need a...

06 February, 2012   

ASP Forms and User Input from HTML form

29 March, 2014   

How to convert strings to lowercase characters, and then clean them up for use in scripts, etc.

An example of HTML form control where used-password input box

An example of HTML form control where used single text input box

29 December, 2011   

ASP code example to redirect the user to a different URL.

PL/SQL functions returns a scalar value and PL/SQL procedures return nothing. Both can take zero or more number of parameters as input or output. The special feature about PL/SQL is that a procedure/function argument can be of input (indicating the argument is read-only), output (indicating the argument is write-only) or both (both readable and...

11 February, 2013   

File inputs can have an attribute of "multiple" which then allows multiple files to be selected in the file section dialog box.

24 July, 2013   

An example of how to use the mysql_real_escape_string

CSS code example how to custom File Input Styling in WebKit/Blink

04 October, 2012   

Turn a string into a readable url

15 September, 2012   

This will perform the action of deleting many files.

11 September, 2011   

This is a minimal apache ant build.xml file that will quickly do all the things that you will generally want to do, including compiling and building a simple Java project to class files and jars. It provides targets to compile the class files and jars and to run the main class. The fields marked "My Project Name Here" and "My Main...

16 February, 2013   

Binds a php variable to an SQL statement using the bindParam() method

02 June, 2011   

This will check an email, to see if it is in a valid format.