dan wrote: > I'm making a script that enables you to download content off a server as it > is, so the data is as up to date as it could ever possibly be. I have this: > > however, if I click on the link on the web page which executes the > download.pl script, it appears either a) in the web browser, or b) as a > download.pl file. How can i make this so when clicking the link it creates a > servers.ini file on the fly? > > Thanks in advance. > > Dan
Are you POST-ing the request. By default, web browsers assume GET as the method. You should explicitly POST if you want CGI-type behavior. I would suggest using POST even if you have no data to convey. What I do when I want to launch a CGI script without having a form to fill out is use a very small form, with no inputs, but with the method set to POST, and the action set to the cgi script. Then I have a small Javascript function that calls document.FormName.submit(), and set this as the onload attribute of the body tag. Actually, I do have one input, a hidden field identifying the stage of the process. You might want to try something like this. Also as Dan pointed out, you might have to use .cgi as your extension instead of .pl, depending on server setup. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]