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

 Save IP, date ad id_file on database

Print topic Send  topic

Author Message
alfonso

Posts: 121
Posted: 11/05/2008, 10:11 PM

I want to know in CCS 4, how can I do to save in a table IP, date and id_file when someone clic to download a file. Is there an "onclick" event or similar?

Thanks
View profile  Send private message
Gena

Posts: 591
Posted: 11/05/2008, 10:42 PM

Take a look at http://forums.yessoftware.com/posts.php?post_id=101071

I have posted example of that script. In UPDATE part you can calculate and add/update any other fields you need.
_________________
Gena
View profile  Send private message
jjrjr1


Posts: 942
Posted: 11/06/2008, 8:41 AM

Hi

It might be easier than that. Not sure but consider on your download page having a record that will update a table with the data you want.

Make the fields hidden and load them up in before show events with the data you want to put into your table. Make the download button a submit button for insert with return page being the page that will serve up your download. (Be sure to have hidden fields for the url parameter to that download script)

What will happen is when you click download your table will be updated with what ever fields you loaded in the before show events and your download server scipt will deliver the download for you.

I think the advantage of this could be your pages are 100% CCS and very easy to update and modify since there would be no custom code. That also makes it potable to the other languages CCS supports. The download scripts would only requires minor custom code.

Here is sort of an example using video download. but it is entirely CCS standard pages

http://realtest.biz/viewconversion.php

If you would like more info let me know

Have Fun
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
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.