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

 SetValue on a field with url click?

Print topic Send  topic

Author Message
rla

Posts: 18
Posted: 06/04/2004, 4:37 PM

Anyone know how to update a field based on a url click?

tried a few things - like below - seems to give errors
Event
-onclick
$this->clicked->SetValue(2)


Trying to update a field to know when someone actually visited a url/site.

Thanks

View profile  Send private message
peterr


Posts: 5971
Posted: 06/04/2004, 5:35 PM

Hi,
Clicking on a link is equivalent to typing a URL in the browser. There are no server events and nothing else happens when users click on a URL or type a URL in their browser. The new page is simply being opened.

Your choices would be rather to:
a) place your code within the destination page, so that when users finally navigate to that page then you could perform the update (possibly in After Initilize event).

or if those are external links then
b) create a new special page/script that will be used specifically only to update your database field and only then redirect users to the final destination URL. This method would require that all your current URLs would need to be changed to go to that one page that performs the updates.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
rla

Posts: 18
Posted: 06/04/2004, 10:10 PM

Hi,

Is it possible to update a field on another form?

I created the other form and it redirects the url fine, but having problems passing the information back to the original form.

$form->clicked->SetValue(2);

This way I can validate on the first page that they have clicked this url before allowing them to submit it.

Thanks
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.