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
Moderator: General Moderators
Code: Select all
if(isset($_POST['variable1']) {
$variable 1 = $_POST['var1'];
}
Code: Select all
for($i=1; $i<=50; $i++){
$tmp = "input_$i";
if(isset($_POST[$tmp])){
//create variable with contents of $tmp
$$tmp = $_POST[$tmp];
}
}