dpkyte Posted January 19, 2009 Posted January 19, 2009 I built a Form which includes an Email address to be entered. This works fine except when a user puts in an AOL email account (test@aol.com), I get an I.E message stating "Internet Explorer cannot read this webpage format". Http 406 Not Acceptable. I have tried this on multiple PC and still no luck. When I enter the same information but change the e-mail to test@Gmail.com. Any thoughts here? Thanks Quote
OJB Posted January 19, 2009 Posted January 19, 2009 What happens once the form is posted? I can't see how entering an email would cause a 406 error when submitting a form. If you have any source code then maybe PM it to me and I will have a look and see what is happening. Quote
dpkyte Posted January 19, 2009 Author Posted January 19, 2009 What happens once the form is posted? I can't see how entering an email would cause a 406 error when submitting a form. If you have any source code then maybe PM it to me and I will have a look and see what is happening. I try to get into script that does the POST to get the field, I even put in Echo "Display HERE" but it does not even display. Here is the input >function form_submit() { var msg = '' if (document.RegForm.Emer_Phone.value.length < 7 ) { msg='\n Must enter in Emergency Phone'; document.RegForm.Emer_Phone.focus(); } if (document.RegForm.Emer_Contact.value.length < 5 ) { msg='\n Must enter in Emergency Contact'+msg; document.RegForm.Emer_Contact.focus(); } if (document.RegForm.Phone.value.length < 7 ) { msg='\n Must enter in Phone'+msg; document.RegForm.Phone.focus(); } if (document.RegForm.Zip.value.length < 5 ) { msg='\n Must enter in Zip'+msg; document.RegForm.Zip.focus(); } if (document.RegForm.State.value.length < 2 ) { msg='\n Must enter in State'+msg; document.RegForm.State.focus(); } if (document.RegForm.City.value.length < 2 ) { msg='\n Must enter in City'+msg; document.RegForm.City.focus(); } if (document.RegForm.Address.value.length < 10 ) { msg='\n Must enter in Address'+msg; document.RegForm.Address.focus(); } if (document.RegForm.Mother_Lname.value.length > 1 && document.RegForm.Mother_Fname.value.length < 2) { msg='\n Must enter in Mother First Name'+msg; document.RegForm.Mother_Fname.focus(); } if (document.RegForm.Father_Lname.value.length > 1 && document.RegForm.Father_Fname.value.length < 2) { msg='\n Must enter in Father First Name'+msg; document.RegForm.Father_Fname.focus(); } if (document.RegForm.Father_Lname.value.length < 2 && document.RegForm.Mother_Lname.value.length < 2) { msg='\n Must enter in Parent Info'+msg; document.RegForm.Father_Lname.focus(); } if (msg!='') { window.alert('Errors in form\n'+msg); return(false); } else { if (document.RegForm.confval.value!='Y') { msg='\nPlease validate all information and check the confirmed box.'; window.alert('Errors in form\n'+msg); return(false); } else { return(true); } } . . . <form name='RegForm' method='POST' onSubmit='return form_submit()' action='RegSubmit2.php' > . . <input name="Email_Address" type="text" size="30" maxlength="65"/> . . <input type="submit" name="Submit" value="Submit" /> </form> Here is the RegSubmit2.php script ><? $Email_Address = $_POST["Email_Address"]; include('RegInclude/ConnectRegUpd.php'); include('RegInclude/RegIsrt.php'); ?> Quote
OJB Posted January 19, 2009 Posted January 19, 2009 Is there any reason why you are validating with Javascript? Not saying it is necessarily a bad thing to do but you can quite easily disable javascript in your browser and hence bypass all your error checking. Does the script even manage to get to RegSubmit2.php? Have you tried: print_r($_POST); at the top of RegSubmit2.php? That will print out the $_POST array so you can analyse if anything has been set. If you are not getting to the second PHP file then there is either a problem with the JS validations. I would recommend putting a bunch of alerts in your JS to follow through the flow to make sure it is doing as you expect. What output are you getting at the end of it? Quote
dpkyte Posted January 19, 2009 Author Posted January 19, 2009 Yes, I am getting to the RegSubmit2.php A new window is opened, with https://www.xxxxx.com/RegSubmit2.php in the URL. I've attached an image of the Screen print. And I just put in your code at the top "print_r($_POST); " and that did not even print out. As I have said, I could put test@gmail.com and the same other data and it would be fine. Being a developer for 10 yrs, this is really messing me up. I have other forms using similiar logic where I dont get the form error on AOL. GTLL_regSubmit.bmp Quote
TCH-Alex Posted January 19, 2009 Posted January 19, 2009 I ve resolved this issue and responded to your ticket with the reason. Please check it out now Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.