What are you using for your form handler? You say PHP form, but are
you using an Action or a hand-rolled script on the server to manage
the form submission?
Walter
On Jan 22, 2009, at 8:49 AM, Mr worm wrote:
I have a built a site with a simple feedback form.
If you download and use the PHP easiForm actions then they will handle
all of this for you, there is a small cost for easiForm but it will
save you a lot of time.
Tutorial: Tutorial: easiForm With Freeway
I haven’t used that Action myself. My understanding of it from a distance is that you set a single error page to catch all errors, and the handler will not send mail if a required element is not filled in. The form will certainly submit, but there won’t be any output.
Form page → submit → decision:
Valid: send mail, redirect to success page.
Invalid: error page, directions to correct
That’s the tree as far as I understand it. Tim Plumb should be awake in another hour or so, maybe he can pipe up about this then. (He’s in the Seattle area/time zone.)
Sorry, I missed our original mail. The action only really cares about two fields
if they exist; name and email. If these field names exit and they don’t contain
a value then the PHP code will throw the user to the error page.
If you need to any further validation I would suggest you add the Validate Form
Suite (http://www.actionsforge.com/projects/view/73-validate-form-suite) and do
your value checking before the form gets submitted.
Regards,
Tim.