CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Pass Values to Second form in PHP

Print topic Send  topic

Author Message
Ken
Posted: 09/11/2002, 7:46 AM

I have two web pages. First page is a registration form created in CCS using PHP 4 and templates. The second form is a form created in HTML, served from a secure server and used to send payment information to a payment gateway. What I am trying to do is to eliminate the need to enter information such as customer name and address twice by passing the information from the first registration page to the second payment information page using CCS and populating the fields on the second page automatically. First question: Is this possible? If this is possible, Second question: What is the best method to accomplish this task? Third question: Dones anyone have any sample code that may help?

Thanks in Advance!
Timothy
Posted: 09/14/2002, 4:55 AM

Hello,
well, the task is: first to pass parameters from CCS Record form and the second is to pre fill fields on the second page with passed params.
Here is the tip how to handle with first part.
Create form After Insert event and modify $Redirect variable value (it stores the page name the user to be redirected to and param string)
Sample code:
global $Redirect;
global $form_name;
$Redirect .= "&name= ". $form_name->field_name->Value;

   


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.