I've setup Formmail scripts before, but in this case, the PHP Script is just ignoring the <input type="hidden"...> fields in the form. You can view the form at: http://www.peapodarcade.com/index.php?view=Sponsor_a_Page and I've attached the EXACT php script. The form submits itself correctly, even though it is supposed to check it's 'required' fields. In this case, I want it to check the email field, and even when the email field is empty, it still submits the form... If anyone can help, I would truly appreciate it!!
I haven't looked into your code, but the way your phrased your post it relies upon the content on HTML input elements to verify it? Sounds a bit of an iffy way if you ask me.... Dan
From my understanding, the HTML form is supposed to have hidden elements that are submitted by the form to the formmail script. The formmail PHP script (seen above) then processes this and is supposed to: 1. Check if missing fields are present and STOP the form and inform the user. 2. Submit the form But it submits, even if the required fields are submitted or not...which is my problem, where I'm looking for work...
Could you post the contents of the file please? I can't view the attachment because the attachmentviews table here has been marked as crashed.
Thanks for all the offers to help, I've got meetings until 7pm, but I will post up the HTML page (the page with the form) and the PHP page (the formmail script processing the form) by 7:30 pm.
Alright, here are the two files (got held up with some unscheduled stuff). If anyone can help, I'd appreciate it!
Got it resolved with another mailing script on suggestion of jdseo: http://formtoemail.com/ Now here is what I did... FormToEmail didn't check for specific fields to see if they were filled in, which was my primary problem, but they checked if at least ONE field was filled in (so I wouldn't get a blank form...kinda idiotic) but I just put this code after line 145 (common sense after looking at the code): Whatever is in the ' ' should be the HTML field name and then the " " should contain the error message. You can check the new form here and test out the errors if you want: http://www.peapodarcade.com/index.php?view=Sponsor_a_Page