Re: sending text input with quotes, etc...
| From: | Jeff Warrington | Date: | Thu, 09 Nov 2000 11:12:09 +0000 |
| Subject: | Re: sending text input with quotes, etc... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24609@lists.php.net to get a copy of this message | ||
In article <8u11ll$p41$1@toye.p.sourceforge.net>, oguz@planet.net.tr
wrote:
prolly can use rawurlencode (or urlencode) so that all the
quote and other chars are encoded. On the action page of
the form, simply decode the variable.
Jeff Warrington
> This is more related to HTML but forgive me:
>
> I am writing a web based email program for the boss. Since he will be
> able to send message in html format, and since he doesn't know it well,
> I want him to be able to see his message before sending it. So I need a
> hidden input that will carry a users message to the real script through
> confirmation page. Like
> <input type=hidden name=message value=......................>
>
> What should be instead of those dots? The message may have single
> quotes, double quotes and newlines. if the message user wants to send is
>
> hello friend,
> "blah blah" and 'blah blah'
> s u later.
>
> the 's and "s don't allow me to put any enclosing quotes around the
> message, then the newlines and blank spaces cut message to only one
> word.
>
> Any help is appreciated.
>
> Oguz.
>
>
>
>
>
>