Hi guys, I'm trying to pass an email through a GET form, but in IE, it strips out the @ symbol on the page with the GET parameters. I'm using an onSubmit event, but all those do is validate the data before letting them submit, it doesn't touch any of the form values.
<form name="quick" id="ex" action="order" autocomplete="off" method="GET" onsubmit="return validateQuickForm(this);">
<input id="eMail" value="" name="email" onblur="validateField(this, VALIDATE_EMAIL, false)" type="text">
....
<input src="/images/button.gif" value="Submit" alt="Submit" title="Continue to order form" type="image">
</form>
Let's say I input [email protected]..
It should redirect me to
example.org/order/?email=user%40example.org
But it redirects me to
example.org/order/?email=userexample.org
It works fine in Firefox..
Here's the javascript function, just in case:
function validateQuickForm(form) {
var errors = new Array();
if (VALIDATE_EMAIL(form.email) == false)
errors.push("That's not a valid email!");
if (errors.length > 0) {
var errorMsg = "Please fill out all fields correctly:";
for(var i = 0; i < errors.length; i++)
errorMsg += "\r\n-"+errors[i];
alert(errorMsg);
return false;
}
return true;
}
Also, I've removed the javascript and events and it still strips out the @ regardless