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 -> General/Other

 Passing values between pages

Print topic Send  topic

Author Message
Michael
Posted: 02/12/2004, 1:34 PM

I have a page that the user enters the data on. Then it is user is sent to a Thank you page. How can I use some of the values entered on the first page they see on the next page?

Thanks as always
Sarah
Posted: 02/12/2004, 1:54 PM

Add some objects like labels or textboxes to the 'thank you page' rename those objects same as your variables in the POST method. In the data entry form set the return page to 'thank you page'

Quote Michael:
I have a page that the user enters the data on. Then it is user is sent to a Thank you page. How can I use some of the values entered on the first page they see on the next page?

Thanks as always
peterr


Posts: 5971
Posted: 02/12/2004, 2:32 PM

There may be several ways to do this. If the data is entered in the 1st page and saved in the database, then you can retrieve it on the 2nd page either via manual coding (event) or by creating a record or grid form that displays those values from the database.

Or you can create an "After Insert" event on your first page and write some code that will append the parameters into the URL when the page is redirect to the 2nd page. The code depends on the programming language used.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
unaprogrammer


Posts: 5
Posted: 02/17/2004, 5:00 AM

I am trying to do something very similar. I have a user that wants to retain field values on a record form after the insert to cut down on data entry time. I am using PHP and I would like to use the Primary Key to retrieve values when the page refreshes.

Can you give me some idea what the code would look like to append the PK into the URL on the "After Insert" event?
View profile  Send private message
peterr


Posts: 5971
Posted: 02/17/2004, 12:07 PM

I believe that our "Multi-Step User Registration" example in CCS Example Pack shows exactly that.

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
unaprogrammer


Posts: 5
Posted: 02/21/2004, 12:08 PM

I see. The custom code looks up the last PK value and then appends it to the redirect var. I noticed it uses two functions that do not appear in the Component Reference:
CCGetFromGet
CCGetFromPost

What do these do or have these been deprecated and replaced by something else?



View profile  Send private message
DonB
Posted: 02/21/2004, 2:36 PM

Sadly, the docs are a bit thin. It might be that they don't consider some
functions necessary in their future plans and didn't document them. The two
GetFrom's are wrapped by outer "get" functions which determine whether to
retreive from Get or Post based on how the form was submitted.

Only Yes knows the answer to the question.

--
DonB

http://www.gotodon.com/ccbth


"unaprogrammer" <unaprogrammer@forum.codecharge> wrote in message
news:24037bad8040f8@news.codecharge.com...
> I see. The custom code looks up the last PK value and then appends it to
the redirect var. I noticed it uses two functions that do not appear in the
Component Reference:
> CCGetFromGet
> CCGetFromPost
>
> What do these do or have these been deprecated and replaced by something
else?
>
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

unaprogrammer


Posts: 5
Posted: 02/23/2004, 6:56 AM

Looks like they were replaced by CCGetParam which first checks for a GET and then checks for a POST. In any case CCGetParam is actually in the Component Reference and it sort of looks like it does the same thing.
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.