Hello. i have this code bellow that im getting an error from in IE only. in firefox it works but in IE i get "error: 'imgcontent' is null or not an object" AND "error: 'document.form' is null or not an object" how can this be solved? function checkForm(form) { if(form.imgcontent.selectedIndex > 0) { document.form.submit(); } else { alert('Please Select Image content Type'); return false; } } PHP:
If you're validating your data using Javascript don't rely on it as some people don't have Javascript enabled either through choice or viewing on a device that doesn't support it - always validate with PHP as well.
What's the name of your form .. ? Change your code to something like this : <form name="testform"> document.testform.submit(); PHP: