Ok I have a form which has x number of checkboxes and textareas as this:
Now I have to pass these form variables to postme.phpCode:echo "<input name='skills[]' type='checkbox' onclick='this.form.txt$skillname.disabled = !this.checked' value='$skillid' checked>$skillname: <textarea rows='3' cols='20' name=txt$skillname></textarea><br />";
I know how to pass the checkbox variables --
As that passes an array of checkbox values...Code:$skills=$_POST['skills'];
But how would I pass the textarea ones? They each have a different name such as txtOne, txtTwo etc... so how can I pass them as I need to be able to access them without knowin the name...?




Reply With Quote