Within one of my interactive forms, (page1) I have used the HTTP_POST_VARS….. to obtain user info, then to preview their work on (page2) I assign the HTTP_POST_VARS….. various variables to session variables…. This way if the user chooses to edit the form he/she may click an edit button which takes you back to (form1). Then those variables will reside on their session cookie. The problem is that after this transfer any data past one word…. Ie (This report) will be truncated to (This) which is a huge problem. Any Ideas suggestions? Anything would help…
Thanks newuser
oh not a prob...
a small bit from page 1 where I'm initializing the variable
$text = "";
if(isset($HTTP_POST_VARS["text"]))
$text = $text.$HTTP_POST_VARS["text"];
echo '</table>';
echo '<table align=center valign=top><tr>_______________________________________________________________________________________________';
echo '</tr>';
echo '</br></br>';
echo "<tr><TEXTAREA size=100 name=feedback rows=20 cols=110 fgcolor=#000000>".$text."</TEXTAREA></br></br></tr>";
And the corresponding part in (page2)
//sending
echo "<input type=hidden name=submit value=1>
<input type=hidden name=text value=".$text.">";
$_SESSION["text"] = $text;
echo "If this data is correct and final,click to send to supervisor:
<input type=submit value=\"Submit Report\"></form>";
//reloading
echo "<form action=page1.php method=POST>
<input type=hidden name=text value=".$text.">";
$_SESSION["text"] = $text;
echo "If this data needs editing, click here: <input type=submit value=\"Edit Report\">
</form>";
//rejecting
echo "<form action=page2.php method=POST>
<input type=hidden name=reject value=1>
<input type=hidden name=text value=".$text.">";
$_SESSION["text"] = $text;
echo "If this data is wrong, click to sent back to underling: <input type=submit value=\"Reject Report\">
</form>";
}
else //no choice but to reload
{
echo "</form><br><font color=#ff0000><b>You had input errors.
Please click on Edit Report to go back and fix those errors.</b><br></font>";
echo "<form action=page1.php method=POST>";
echo "<input type=hidden name=text value=".$text.">";
$_SESSION["text"] = $text;
//$redo = 1;
echo "<input type=submit value=\"Edit Report\"></form>";
Thanks again