My output of a text box is giving the answers "array"
Here is the textbox:
<TEXTAREA NAME='text{$productRow1['id']}[]' ROWS=3 COLS=60>
</TEXTAREA>
An here is the code for output on the next page:
for ($i=0; $i<$num; $i++) {
// Fetch data from survey table here
$rows= mysql_fetch_array ($results);
$s='';
$t='';
$u='';
$array_name= 'myradio'.$rows['id'];
$array_name1='text'.$rows['id'];
if (isset($_POST[$array_name])) {
foreach ($_POST[$array_name] as $key => $val) {
if ($val=='yes') $s='Yes' AND $t=$_POST[$array_name1];
else if ($val=='no') $s='No' AND $t=$_POST[$array_name1];
$currentPlace = count($line);
$line[$currentPlace][0] = $rows['requirement_txt'];
$line[$currentPlace][1] = $s;
$line[$currentPlace][2] = $t;
//$line[$currentPlace][3] = $u;
$line[$currentPlace][4] = "Module 1";
}}}
Any ideas how I can get $t to output the actual results of the textbox (whatever is typed in the textbox)
Any helps is great thanks!!!