Im a nOObie at this stuff, so please forgive me if this is a stupid question.
On my html form I have a text area set up using the following tag:
<textarea name=report wrap=virtual onfocus="select()" rows=20 cols=109></textarea>
The user enters tab delimited information into this textbox, where a series of functions are performed on it. What I am having problems doing is taking this information, splitting it and putting it into an array, then displaying the information.
Here is where I declare my array, and gather the info from the textarea and split it into the array:
$TEXT = isset($_POST['report']) ? trim($_POST['report']) : "";
$_SESSION['report'] = $TEXT;
$INFO=array($NAME, $ADDY, $CITY, $STATE);
$INFO=split("\t",$TEXT);
Here I am displaying just the name (I put the echo $text command to see if I was even bringing my info in right):
<textarea name=report wrap=virtual onfocus="select()" rows=20 cols=109>
<?
echo $NAME;
echo $INFO;
echo $TEXT;
?>
</textarea>
The only output I receive here is "array" which I am assuming is coming from the $INFO variable.
What am I doing wrong here, and how do I correct it? I assume the split() is working right, but I can be certain as it appears I am not gathering the info from the textarea correctly. So is this a session problem?
Thanks in advance.
On my html form I have a text area set up using the following tag:
<textarea name=report wrap=virtual onfocus="select()" rows=20 cols=109></textarea>
The user enters tab delimited information into this textbox, where a series of functions are performed on it. What I am having problems doing is taking this information, splitting it and putting it into an array, then displaying the information.
Here is where I declare my array, and gather the info from the textarea and split it into the array:
$TEXT = isset($_POST['report']) ? trim($_POST['report']) : "";
$_SESSION['report'] = $TEXT;
$INFO=array($NAME, $ADDY, $CITY, $STATE);
$INFO=split("\t",$TEXT);
Here I am displaying just the name (I put the echo $text command to see if I was even bringing my info in right):
<textarea name=report wrap=virtual onfocus="select()" rows=20 cols=109>
<?
echo $NAME;
echo $INFO;
echo $TEXT;
?>
</textarea>
The only output I receive here is "array" which I am assuming is coming from the $INFO variable.
What am I doing wrong here, and how do I correct it? I assume the split() is working right, but I can be certain as it appears I am not gathering the info from the textarea correctly. So is this a session problem?
Thanks in advance.