javascript - PHP Get wrong info by email from html form -
live form-
I add JavaScript validation, everything works perfectly, its Apart from that I find the wrong value on the contact number section on email (see contact number from email entity). I add that Javascript validation so that the user must enter the numeric value on that field.
& lt; Input type = "text" id = "abc1" name = "contact1" /> & Lt; Input type = "text" id = "abc1" name = "contact2" /> & Lt; Input type = "text" id = "abc1" name = "contact3" /> & Lt; Script language = "javascript" type = "text / javascript" & gt; Validate function form () {var x = document.forms ["contactForm"] ["contact1"]. Values; If (x == faucet = x == "(/ [^ 0-9] /. Test (x)) {warnings (" contact number should not be filled / no valid contact number "); return false; } Var x = document.forms ["contactForm"] ["contact2"] value; If (x == faucet = x == "(/ [^ 0-9] /. Test (x)) {warnings (" contact number should not be filled / no valid contact number "); return false; } Var x = document.forms ["contactForm"] ["Contact 3"]. Values; If (x == faucet = x == "(/ [^ 0-9] /. Test (x)) {warnings (" contact number should not be filled / no valid contact number "); return false; } & Lt; / Script & gt;
These are emails that I'm getting from contact form.
Brian, someone has sent you a contact message through your website Details below: Name: Owen Owen Email Address: kidrock@msn.com Contact Number: kidrock@msn.com kidrock @ Msn.com kidrock@msn.com zip code: 65961 Best time to contact: noon payment plan option: plan two - $ 150 / hour ($ 60 / b-wk payment plan) for INcl's MUA / unlimited images MUA: Any Concept of Target: Shoot Concept (Other): NhkiperljgjvJKpjT
How do I What can I do to fix this problem?
Try changing this code to your code.
to
if (x == ft. X == "" || (/ [^ 0- 9] / Test (X))
to
if (x == ft = x == "" || ! (/ [^ 0- 9] /. Exam (x)))
>> Look! & Lt; & Lt; icon.
Comments
Post a Comment