CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Form Action

Print topic Send  topic

Author Message
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">
View profile  Send private message
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
View profile  Send private message
Gena

Posts: 591
Posted: 01/11/2012, 4:08 AM

just use normal HTML FORM (instead of CCS Record)
_________________
Gena
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.