Large Variable Checking - How?
Posted: Mon Feb 02, 2009 10:05 am
I want to check 42 variables from a submitted from, they are in post data types(not that it matters..). I obvoulsy cant post down the script:
And then repeat that 42 times! I want it so that i can decide whether the user has put information into that field, and if they have, put the information itno a variable. If they havn't then dont set a variable, im assuming this can be done with some sort of loop? The fields are named in this convention: '4', '430', '5', '530' etc(They correspond to times of the day)
Also the variable has to be naed the same as the field(So say they enter information into '8' i want the variable to be called '8' etc)
Any ideas?
Oscardog
Code: Select all
if(isset($_POST['variable1']) {
$variable 1 = $_POST['var1'];
}
Also the variable has to be naed the same as the field(So say they enter information into '8' i want the variable to be called '8' etc)
Any ideas?
Oscardog