I have the script on......
http://www.birchwreath.com/
When I test it...it works great. Won't let me submit without filling in something on each line. Then sends email with name of each box and the info I typed in.
But people that have tried it that are on netzero and walmart isp's get a pop up box asking for a message to be typed. All I get in the email is what they type in that box, nothing of what they filled into the original boxes.
Thanks for helping. I am at a total loss.
monica
<script>
/*
Check required form elements script-
By JavaScript Kit (
http://javascriptkit.com)
Over 200+ free scripts here!
*/
function checkrequired(which){
var pass=true
if (document.images){
for (i=0;i<which.length;i++){
var tempobj=which.elements[i]
if (tempobj.name.substring(0,8)=="required"){
if (((tempobj.type=="text"||tempobj.type=="textarea") &&tempobj.value=='')||(tempobj.type.toString().cha rAt(0)=="s"&&tempobj.selectedIndex==-1)){
pass=false
break
}
}
}
}
if (!pass){
alert("One or more of the required elements are not completed. Please complete them, then submit again!")
return false
}
else
return true
}
</script>
<FORM METHOD=POST ACTION="mailto:wreathwholesale@thecountrytree.com?subject= wreath wholesale price request" ENCTYPE="text/plain" onSubmit="return checkrequired(this)">
<H5>Please Fill out the form
to recieve info on where to find our wholesale pricing. Thanks! We look forward to hearing from you!</h5>
Contact name:<br><input type="text" name="required_Contact name" size="25"><br>
Email:<br><input type="text" name="required_email" size="25"><br>
Phone:<br><input type="text" name="required_phone" size="25"><br>
Company Name:<BR><input type=text name="required_CompanyName" size="25"><br>
Address:<BR><input type=text name="required_Address" size="25"><br>
City and State:<BR><input type=text name="required_City and State" size="25"><br>
<input type=submit value="Ok, I'm ready!">
</form>