View Complete Thread | FoxWeb Forum Home
Date:    Msg ID:   
From:    Thread:   
The simplest way to do this is to store the sample program in your Web tree and use the Response.Redirect method to redirect users to it once they complete the form.  Users that do not complete the form will not know the URL to the program, so they will not download it directly.
Of course if you want to absolutely control access to the download via FoxWeb you will need to use the principles illustrated in the download.fwx sample script.

FoxWeb Support Team email

Sent by Ronald Olds on 09/23/2002 05:38:06 PM:
I am trying to set up a site so that users can download a demo program once they fill out a form. I guess I am lost as to the best way to do this. I have read the download example provided and tried to incorporate those examples in my code, but when I try it, it always trys to send the script file and not the demo file. My form calls itself when filling out the form and when filled out, starts the download, sending the script file instead. What is the best way to do something like this?