IE does not skip the @ character to enter email in GET form

I am trying to send an email via a GET form, but in IE it removes the @ symbol on the page with the GET options. I use the onSubmit event, but all this checks the data before sending it, and does not concern any 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>

Say I enter user@example.org ..

He 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 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 deleted javascript and events, and it still deletes @ regardless

+3
source share
3 answers

- . javascript, "@" . "VALIDATE_EMAIL" INPUT? , IE.

+1
0

, , POST, . IE, , @ - . , GET , (POST) - , .

0
source

Source: https://habr.com/ru/post/1714552/


All Articles