Problem with sending information with quotes

From: Date: Fri, 17 May 2002 06:40:36 +0000
Subject: Problem with sending information with quotes
Groups: php.general 
Request: Send a blank email to php-general+get-98016@lists.php.net to get a copy of this message
Hi, I have follow PHP file test.php: if ($action=="") { echo "<FORM name=\"pp\" action=\"test.php\" method=\"post\" >"; echo "<TEXTAREA name=\"text\" rows=\"5\" cols=\"50\" maxlength=\"250\" style=\"width:350px\"></TEXTAREA>"; echo "<INPUT name=\"send\" type=\"submit\" style=\"width:80px\" ></INPUT>"; echo "<INPUT name=\"action\" type=\"hidden\" value=\"send\"></INPUT>"; echo "</form>"; } if ($action=="send") { echo "$text"; // if in the input form I enter something with quotes, i.e. "TEST" // here the value of $text is \"TEST\" . The PHP send value to me with backslah. // // How can I get the real entered, i.e. "TEST" ? Where is the problem ? } Thanks, Rosen Marinov

« previous php.general (#98016) next »