View Full Version : HTML Special Characters in forms
Our form is posting back soem odd results as seen below
> position+type: Part TIme
> us+citizen%3f: Yes
its obviously converting the Form Fierld names HTML Special character to their code valu e before subbing to email, is their a way around this so it would say
"Position type" instead of "position+type"
HRWahid
03-26-2005, 05:36 PM
Our form is posting back soem odd results as seen below
> position+type: Part TIme
> us+citizen%3f: Yes
its obviously converting the Form Fierld names HTML Special character to their code valu e before subbing to email, is their a way around this so it would say
"Position type" instead of "position+type"
I'm guessing you'll have to run it through URI_Escape (perhaps URI_Unescape) to remove the special characters. On a note of personal preference, I would normally use something like "PositionType" as a field name, and have never run into this issue.
iDxMan
03-27-2005, 01:50 AM
1. As mentioned, lose the spaces/special chars unless you absolutely can't.
2. What is processing the data on the backend?
its a basic submit via email we and saying "loose the special characters" donest solf the isue their in there for a reason, namely so the Execs can read the emails in layments terms not html speak
iDxMan
03-30-2005, 09:27 PM
So it's doing something like:
<form method="post" action="mailto:youremail@email.com">
?
If so then you're relying on the client software to do whatever it does with mailto: links.. That's a seriously poor way to do this.
I'd recommend posting the form to some sort of script (some kind of CGI or a php page) which then takes the data and formats it as needed for emailing.
-r
you know i only gave what emails look lik i never quoted the form tab i dont knwo where you got that from
i use
<form action=cgi-sys/FormMail.pl method=post>
i have my own form-mail set up that supose to understand special characters but when i change the line to
<form action=cgi-bin/FormMail.pl method=post>
where the scrip resides (and yes i check the path for caps and typos)
it gets can not run script error page, and "Additionlay a 404 error was found" meaning it cant run my script because it cant find the pl file?
:plot:
iDxMan
04-01-2005, 10:55 PM
you know i only gave what emails look lik i never quoted the form tab i dont knwo where you got that from
Since you didn't specify how the data was processed I made the next logical assumption that you were using the old mailto deal. Perhaps I should look at the nested subforum topic. :)
Sounds like something for HR support to take care of.. Their FormMail.pl is some kind of stock supported thing, correct?
-r
ya, been workign with HR support trying to http://celebrities-staffing.com/registration.htm to work but we keep hitting a dead end they think it might be a scrip mis configure so im posting the form mail im using here in hopes you guy might notice a bug
MagicOPromotion
06-03-2009, 01:03 PM
I dont think anyone can possibly know all the HTML special characters Well, I keep finding new ones.
What are the ones your fingers know automatically? Please share...
Mine are:
“ and ” for angled-in double-
_______
=== XRumer 5.0 Palladium (http://www.botmasternet.com) RULEZ! ===
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.