CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Prevent Insert, Retain $_POST values???

Print topic Send  topic

Author Message
Steve F
Posted: 01/20/2005, 7:39 AM

Hi,

I have a registration form that performs all normal validation (email
address, required values, etc.). I would like to retain all of this,
without actually inserting the record. I would prefer to have it stop
short, and then continue on to the next page, where the $_POST values
can be used to actually insert the record. This should be a trivial
task, yet CCS does not want to continue on without inserting the record.
I've tried setting the form "InsertAllowed" to false, setting CmdExecute
values, you name it. Is there a way to do this?

Regards,
Steve
mrachow


Posts: 509
Posted: 01/20/2005, 11:40 PM

I'm not sure if it will work, buut ...
I would try not to tie the controls to Data Source columns.
Maybe the controls are not set to the enterd values but you should be able to get them from POST (CCGetFromPost).
_________________
Best regards,
Michael
View profile  Send private message
klwillis


Posts: 428
Posted: 01/25/2005, 3:11 PM

The solution to this one is by using the 'SetTag' action.

Perform a 'SetTag' action on the BeforeShow event on your form.

When you're asked for 'Tag Name' set it to Action
When you're asked for 'Expression' set it to the exact
name of the form you wish to post to surrounded in quotes.

Quote Steve F:
Hi,

I have a registration form that performs all normal validation (email
address, required values, etc.). I would like to retain all of this,
without actually inserting the record. I would prefer to have it stop
short, and then continue on to the next page, where the $_POST values
can be used to actually insert the record. This should be a trivial
task, yet CCS does not want to continue on without inserting the record.
I've tried setting the form "InsertAllowed" to false, setting CmdExecute
values, you name it. Is there a way to do this?

Regards,
Steve

_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
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.

Web Database

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.