Welcome Guest, Not a member yet? Register   Sign In
Best method to save $_POST data to a database
#5

[eluser]Negligence[/eluser]
Step 1: Validate it by content, type, length, etc.
Step 2: Send it to the Model
Step 3: If not using Active Record, PDO, etc., sanitize the values.
Step 4: Parse the values into the query.

There's nothing wrong with sending $_POST to the database, just as long as its sanitized beforehand.


Messages In This Thread
Best method to save $_POST data to a database - by El Forum - 03-01-2008, 09:24 PM
Best method to save $_POST data to a database - by El Forum - 03-01-2008, 10:10 PM
Best method to save $_POST data to a database - by El Forum - 03-01-2008, 10:19 PM
Best method to save $_POST data to a database - by El Forum - 03-02-2008, 04:56 AM
Best method to save $_POST data to a database - by El Forum - 03-03-2008, 07:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB