Symbols in the submitted data

A historical forum for issues reported in the suggestions and bugs forum that have been subsequently fixed or resolved.
Post Reply
User avatar
Silurus
Posts: 12442
Joined: 31 Dec 2002, 11:35
I've donated: $12.00!
My articles: 55
My images: 895
My catfish: 1
My cats species list: 90 (i:1, k:0)
Spotted: 426
Location 1: Singapore
Location 2: Moderator Emeritus

Symbols in the submitted data

Post by Silurus »

I noticed that whenever symbols such as apostrophes (and a few others) are entered in the form, they show up in the submitted table accompanied by a backslash. Can this be fixed?
Image
Rusty
Posts: 682
Joined: 30 Dec 2002, 14:51
Location 1: New York, NY
Interests: Mochokidae, Clariidae, Heteropneustidae, Malapteruridae, Chacidae, Cetopsidae, Bagridae, Amphilidae
Contact:

Post by Rusty »

Nope, don't think so. PHP interprets some symbols, esp. the ' and ", in a special way. They have to be "escaped" with a backslash (the form does it automatically). Besides, Jools can (or should :-)) strip the backslashes before entering the data.

Rusty
User avatar
Jools
Expert
Posts: 16256
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:13, k:1)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

Correct, but you can use a ` instead of a '. Also, double quotes are a problem, the only easy way is to use HTML.

& q u o t ; will render as "

Sorry it's a bit quirky.

Jools
User avatar
Jools
Expert
Posts: 16256
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:13, k:1)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

More on this. It appears that carraige returns are appearing in submissions which play merry hell with the table display and wil cause one data submission to creep into two lines.

I think these are introduced by pasting into the forms from another source such as a webpage or .pdf. Would it be possible to paste the text into (perhaps Rusty can help me out with the Mac equivalent) notepad to strip out any invisible nasties?

Jools
User avatar
Silurus
Posts: 12442
Joined: 31 Dec 2002, 11:35
I've donated: $12.00!
My articles: 55
My images: 895
My catfish: 1
My cats species list: 90 (i:1, k:0)
Spotted: 426
Location 1: Singapore
Location 2: Moderator Emeritus

Post by Silurus »

Actually, I intentionally put carriage returns to break the text up into paragraphs (easier reading than a whole string of sentences). Any viable alternatives?
Image
User avatar
Jools
Expert
Posts: 16256
Joined: 30 Dec 2002, 15:25
My articles: 198
My images: 941
My catfish: 237
My cats species list: 87 (i:13, k:1)
My BLogs: 7 (i:10, p:167)
My Wishlist: 23
Spotted: 450
Location 1: Middle Earth,
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Post by Jools »

I'm not sure it is those carraige returns that are the problem, but maybe you are right and it's a limitation of the form when used from a Mac OS.

Try using two HTML break tags. < b r > < b r > without spaces. I can pick that up and run with it at this end and it won't goose the table display.

Jools
Post Reply

Return to “All Resolved Issues”