Re: What's the best way to do a preview/submit?

From: Date: Thu, 07 Sep 2000 08:24:38 +0000
Subject: Re: What's the best way to do a preview/submit?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15669@lists.php.net to get a copy of this message
"O.J. Alcaraz" wrote: > I have simple news posting form. Just a couple of fields. I want to give the > user a chance to preview what he/she entered and then go ahead and submit. I > can pass the form data fine but the problem I'm running into is with double > quotes since in the preview page the data is placed in hidden inputs and > then submitted into the database. Is there anyway I can get around this? I > can't just use htmlspecialchars() or anything like that because I'm letting > the user enter HTML if they wish. Any help appreciated. > > O.J. Alcaraz > Abaris Technologies .. just use str_replace so replace " with \". After the input, do it vice versa. Martin

« previous php.general (#15669) next »