fmwebschool.com
Top Experts [learn more]Top 4-10
webko

9743 K
bandmandq

2458 K
Genx

1525 K
4. tcmeyers
5. kbata
6. Martie
7. Hammerton
8. rrenfrow
9. bneeman
10. plegler
Welcome, Guest. Please login or register.
June 17, 2013, 09:47:06 PM

Login with username, password and session length
Search:     Advanced search
Welcome to the FileMaker Web Masters Exchange.  If you have any questions about how to use this forum, please watch the getting started movie at:
http://www.fmwebschool.com/movies/forum1/forum1.html
27507 Posts in 6073 Topics by 1524 Members
Latest Member: fmwebster
* Home Help Search Calendar Login Register
+  fmwebschool.com
|-+  PHP Web Publishing Technologies
| |-+  FileMaker PHP, FX.php custom web publishing
| | |-+  Error on cut & paste into textarea field
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Error on cut & paste into textarea field  (Read 1478 times)
gnurps
Jr. Member
**
Offline Offline

Posts: 28


« on: March 14, 2006, 01:16:13 PM »

Howdy out there.
I've got a science conference registration system running on PHP/FX, FMP7 Server Advanced. One of the functions is for people to add an abstract of their presentation. The page works fine when you type in the data. But when you cut and paste into one field, the new record or edit record functions fail. That field is the abstract itself, and the pasted text can be long. But length does not seem to matter. What does seem to matter is whether or not the pasted text comes from a formatted Word file vs. a text-only ASCII file. Cutting and pasting from the ASCII files works; no error. The submission also works works if you cut and paste into other fields on the form from the same formatted Word doc. The difference is that those fields are <input type="text"> whereas the broken one is a <textarea> field.

I wonder if there is some PHP function that would strip formatting before the field goes into the database. Or maybe there is something about textarea fields and how one should handle them?

Thanks in advance.
Gary Sprung
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!