[PHP] Problem with sending information with quotes
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with sending information with quotes
On Fri, 17 May 2002, Rosen wrote: // 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 ? http://php.net/stripslashes miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with sending information with quotes
On Fri, May 17, 2002 at 09:40:36AM +0300, Rosen wrote: // 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 ? Turn magic_quotes off. Check the manual for full details. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with sending information with quotes
Turn magic_quotes off. Check the manual for full details. or use stripslashes() ... rtm ;) -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software Systems Engineer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php