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 -> ASP

 keeping values from a form to another

Print topic Send  topic

Author Message
Geny
Posted: 04/19/2005, 1:29 PM

Hi,

i have something a little complicated to do.
I have a webpage for a contest to make.
I have a record form with textbox who are required. I have a listbox filled with the data source type were listOfValues. The user need to select an activity from that listbox.

At the end of the form, i have a button 'next' who verify what the user had selected and redirect him to another page depending of the activity he choose.

I put custom code like this :
if (ACTIVITE.CHOIX_ACTIVITE.value) = "1_CAN_HEL_RANCH" THEN Redirect = "ranch.asp"

Then, when on the redirected page, the user have other textbox to fill and then click on a 'submit' button who send a email with all the values the user have put in the textbox...

All worked except that i have problem to pass the values entered in the first form to the redirected page who sent the email. Is there a way that i can keep value in 'cache' or another way to redirect to user to the corresponding activity page he choose?

Or, is it a way i can make a record form visible or invisible depending of the value the user choose from the listbox in the first record form ? ....and then if i stay on the first form, i will be able to keep values to send my email.
P.S.: my forms are not linked to a database

I hope you understand what i need to do.
Thanks in advance !!!!!!!!!!!!!!
Benjamin Krajmalnik
Posted: 04/19/2005, 5:16 PM

You can use session variables.
Set them in the first form and clear then after you use them in th second
form.

Geny
Posted: 04/20/2005, 6:14 AM

:-)

Thanks a lot, i had never use the session variables before and that did exactly what i want

:-)
Benjamin Krajmalnik
Posted: 04/20/2005, 11:08 AM

You're welcome!

geny
Posted: 04/26/2005, 12:33 PM

and what happen if i dont clear the session variables?
mrachow


Posts: 509
Posted: 04/26/2005, 1:22 PM

If a second user is using the same browser instance your session variables may have values they shouldn't!?
_________________
Best regards,
Michael
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.