getting information from textareas with php

  • From: BlueScale <bluescale1976@xxxxxxx>
  • To: "programmingblind@xxxxxxxxxxxxx" <programmingblind@xxxxxxxxxxxxx>
  • Date: Sat, 30 Aug 2008 13:37:12 -0400

Hi,
Is there something special I need to do to get information from text
areas?
I have checked for the usual mistakes, misnamed variables etc, and
everything is as it should be except there's never anything in the
textarea variable.
my textarea is as follows:
<textarea cols="60" rows="5" name="mytext"><?php if
($_SESSION["mytext"] != "")
{
echo stripslashes($_SESSION["mytext"]);
}
php?></textarea>

In my form processing code, I have of course, $_SESSION["mytext"] =
$_POST["mytext"].
Every other piece of the form works as expected, just not the textarea.
Thanks for any help
BlueScale

Other related posts: