Afternoon,
I am sure there is a simple explanation but it escapes me. I have a funtion that displays a select box. I need the function so I can save the array in a session. Now I need it display like this:
<select name="rowdata[0][Facility]">
what its doing is this:
<select name="rowdata[$cnt][Facility]">
<?
for ($cnt=0;$cnt<$lngNumRows;$cnt++) {
// this will be the name="" value in the html select list
$menuName = 'rowdata[$cnt][Facility]';
if (isSet($POST[$menuName])) {
$SESSION[$menuName] = $_POST[$menuName];
}
?>
for my other input boxes I have it like this:
<select name="rowdata[<?PHP echo $cnt; ?>][TrailerType]">
This one works fine. How can I get the other little bugger to do what I want?
Thanks
Laura