Submit all form fields?
Posted: Fri Jan 29, 2010 11:16 am
Is there something I can do instead of this:
There are like 200 fields in that form that also need to be inserted into a database!
This did not work as expected:
Mind you, I have some file fields as well.
Code: Select all
$row_dvd_player = strip_tags($_POST['row_dvd_player']);
$row_cd_player = strip_tags($_POST['row_cd_player']);
$row_mp3_player = strip_tags($_POST['row_mp3_player']);
This did not work as expected:
Code: Select all
$x=0;
foreach($_POST as $key => $data) {
$fields[$x]= $data;
$x=x+1;
echo $data.'<br/>'.$x;
}
echo 'VALUE: '.$fields[0].'<br/>';