pkrawetz
Posts: 77
|
Posted: 01/11/2012, 3:11 AM |
|
I have a Contact Us form which has text fields and a captcha object. I want to use a php script provided by the web hosting company but the forms action must be coded with the PHP script. When I change the action property for the form in CCS to the PHP script, it bypasses the validation logic (each field is required).
Is there a way to call the PHP script after the validation is completed?
CCS generated code:
<form id="ContactUs" method="post" name="{HTMLFormName}" action="{Action}">
What I need is:
<form id="ContactUs" method="post" name="{HTMLFormName}" action="/email.php">
|
|
|
andy
Posts: 183
|
Posted: 01/11/2012, 3:48 AM |
|
Why don't you make a call to your email.php file using an event?
If your form is in update mode, use afterUpdate
If your form is in Insert mode, use afterInsert
If you don't want your form to insert or update then you could change the Submit button action to Search, may be? Not sure whether that will bypass validation then though.
Just some thoughts...
_________________
Andy
RAD tools for rich UI controls:
http://www.koolphptools.com |
|
|
Gena
Posts: 591
|
Posted: 01/11/2012, 4:08 AM |
|
just use normal HTML FORM (instead of CCS Record)
_________________
Gena |
|
|
|