My PHP background is VERY small. I have only used a few very simple functions - ever. That said, I am using the following php as a file I link to. When run, it forces download of a certain page (the page never actually opens in the browser, just downloads) into a word doc. It is working perfectly - except that I need to use a parameter in the readfile() url to filter the resulting file, but the readfile() seems to be ignoring the parameter.
Any suggestions on how I can get the parameter to work? The link to the php file is:
<?php header("Content-type: application/vnd.ms-word"); header("Content-disposition: attachment; Filename=letter_1.doc"); readfile("http://scriptcasemanagement.com/firm-login/letters-forms/ltr-ssa-1696[b]?casenum=$passid[/b]"); ?>And sorry - my site is password protected containing secure info, so you really can’t go check it out or anything.