[KLUG Programming] PHP, MySQL and MS Word Cut-n-Paste

Andrew Thompson tempes at ameritech.net
Thu Jul 28 23:51:14 EDT 2005


On Thu, 2005-07-28 at 23:04, Todd Pillars wrote:
> Andrew Thompson wrote:
> > On Thu, 2005-07-28 at 14:08, Todd Pillars wrote:
> > 
> >>Does anyone know of a way to strip the MS Word cruft out of a cut and 
> >>paste?  Document formating seems to be creeping into a MySQL database, 
> >>when pasting from MS Word into a PHP form.
> > 
> > 
> > Are you literally cutting/copying out of MS Word?
> Yep
> 
> > You might try pasting
> > first into Notepad, then cutting from there to your form. A little
> > crufty, but a nice, quick'n'dirty way to strip out formatting.
> That is what _I_ do. Kills bullets and such dead in their tracks.

Right...

> Try to get applicants filling out a form to do one extra step and they 
> cry like a 3 year old when a balloon pops.

...but it sounds like what you're REALLY looking for is a way to trap
what finally comes back from the browser. I'm not well versed yet in
what PHP gives you for the purpose, I'm afraid. Sorry.

-- 
Andrew Thompson <tempes at ameritech.net>
The Imagerie



More information about the Programming mailing list