i went throught the code again and i made sure that i $GET instead of $HTTP....
<p>
I am still not getting the prog. to print the content of the form that was submitted...
It contains 2 checkboxes and 1 input field.
thanks again
the code is as follows:
ppppppppppppp222222222222222
<?php
function DisplayGetVars()
{
global $GET;
echo"in DisplayGetVars--------------";
print ("=============printing=== " . $GET['company']);
DisplayArray ($_GET);
echo"in DisplayGetVars---------at end-----";
}
function DisplayPostVars()
{
global $POST;
DisplayArray ($POST);
}
function DisplayArray($aArray)
{
echo"in DisplayArray -------------";
if (is_array ($aArray) && (count ($aArray) > 0 ) )
{
print ("<b>key ------------ value</b>");
foreach ($aArray as $aKey => $aValue){
if (!is_array ($aValue))
{
if (empty ($aValue))
{
print("this one is empty dude ----$aAkey");
}
else
{
print ("key=$aKey --- value = $aValue");
}
}
else
{
print ("aKey is an array --- $aKey(array)");
DisplayArray($aValue);
}
}//FOREACH
}
else
{
print ("EMPTY OR INVALID " . count ($aArray) . "--" . is_array ($aArray));
}
echo"in DisplayArray----------at end----";
}
?>
pppppppppppppppppp333333333333333333
The above functions are called as follows from a different file :
<?php
error_reporting(255);
include ("DisplayVars_Get_Post_Cookie.PHP");
DisplayGetVars();
echo "all is well went through ok";
?>
==============================<p>
the output is as follows:
<p>
<p>
-----------output start here ----------<p>
ppppppppppppp222222222222222 pppppppppppppppppp333333333333333333 in DisplayGetVars--------------=============printing=== in DisplayArray -------------EMPTY OR INVALID 0--in DisplayArray----------at end----in DisplayGetVars---------at end-----all is well went through ok
-------------------------output ends here ------------------<p>