spires Posted September 1, 2006 Share Posted September 1, 2006 Changing the input name value with every pass of a loop.I've been trying to do:$i +=0;<input name="'.$i.'">then input_name = $_POST[''.$i.''];in the header to get the data. Does anyone have any ideas on how to do this? Quote Link to comment Share on other sites More sharing options...
Jenk Posted September 1, 2006 Share Posted September 1, 2006 [code]<?phpforeach (array_keys($_POST) as $input_name) { //do something with $input_name}?>[/code] Quote Link to comment Share on other sites More sharing options...
spires Posted September 1, 2006 Author Share Posted September 1, 2006 Its ok, I've just worked it out, i didn't realise you use the value tag on checkboxs.Thanks anywayinput<input name="$i" type="checkbox" id="$i" value="'.$srow['subs_id'].'">head$s = $_POST['$i']; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.