/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] E-mail Addresses in Forms

I have a form where a user inputs an e-mail address, and then submits it with GET method. In IE this works fine, but in Firefox, the browser converts the @ symbol to “%40”. This results in the form not working.
Does anyone know a way to prevent this from happening?

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@ryanbutlerJan 24.2010 — Probably because the email address contains spaces and there's no spaces allowed in the address bar, so the browser appends it for you. Best way to avoid this is to switch the submission method to post and use a script to capture that email address and them email to a specified recipient.
Copy linkTweet thisAlerts:
@JerailauthorJan 24.2010 — Well, it's not exactly an e-mail form. It's a subscription form, where users have to enter their name and e-mail to subscribe to a newsletter.

I resolved the problem by using AJAX, which looks better anyways.
Copy linkTweet thisAlerts:
@ManjushaJan 28.2010 — Can u pls put solution code?
×

Success!

Help @Jerail spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...