Re: [PHP] TextArea vs. URLEncode/URLDecode/quotes

2003-07-09 Thread Kevin Stone
- Original Message - From: Arcadius A. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 12:50 PM Subject: [PHP] TextArea vs. URLEncode/URLDecode/quotes (snip) So, My question is: What's the best way to get the value of a textarea back after validation without

Re: [PHP] TextArea vs. URLEncode/URLDecode/quotes

2003-07-09 Thread Marek Kilimajer
The correct way is: In validate.php: if(error) { if(magic_quotes) stripslashes(); urlencode(); } else { INSERT INTO ... } In form.php: // urldecode() is not needed, GET variables are already decoded if(magic_quotes) stripslashes(); textarea?= htmlspecialchars()?/textarea

Re: [PHP] TextArea vs. URLEncode/URLDecode/quotes

2003-07-09 Thread Arcadius A.
Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The correct way is: In validate.php: if(error) { if(magic_quotes) stripslashes(); urlencode(); } else { INSERT INTO ... } In form.php: // urldecode() is not needed, GET variables are already decoded