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