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

 2 forms, transfer the value of a input field

Print topic Send  topic

Author Message
thomas2340

Posts: 55
Posted: 07/14/2012, 9:12 PM

hi,

i have two seperate forms on one page called "activity" and "activity_follow".
on my first form (activity) i have a input field called person with a value for example 1001.

on my second form (activity_follow) which is empty, i want to get the value from the first form from the field person.

in the Default Value field of person in the form activity_follow i tried:

CCGetParam($activity->person, "")

i tried also the before show event, but it doesnt work.

Has anyone an idea ?
View profile  Send private message
djgjohn

Posts: 52
Posted: 07/17/2012, 4:37 PM

I understand you are submitting the first form, then wanting to capture the submitted value in the second form after submit.

My way of doing it would be to save the submitted value in the session on button click in the first form. Then pick it up in the second form before show.

Add Onclick Server-side event to first form submit button: CCSetSession("person",CCGetParam("person"));

In second form Before Show person:
$Component->SetValue(CCGetSession("person",""));
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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