Archive for April, 2008
Process Your PHP Form POSTs Faster.
The Scenario:
You setup a contact form for people to send you email. When the form is submitted, you want to assign each of the POST, GET or REQUEST values to a variable with the same name as the key. (You could do this for a number of reasons, but that’s a different topic.)
The Problem:
Ugh! Doing this can be really time consuming, especially if you have a really long form. Presonally, I would just use the array element vs. setting creating a new variable, but if you must, I suggest using a foreach() loop to create the variables for you.
The Solution:
Read the rest or post a comment »
