Hi,
point the link "save this..." to the same script with some trailling vars:
<a href=this_script.php?save=1>...</a>
and then, in the beginning of this_script.php modify the mime type if
$HTTP_GET_VARS["save"] == 1
if ($HTTP_GET_VARS["save"] == 1) {
header("Content-type: application/octect-stream");
}
...thats it!
regards,
Nuno
Tony Daniels wrote:
> Hello Everyone!
>
> We need something that is probably very simple.
>
> Here is what we are doing.
>
> We created a form that asks a series of questions about the product we
> are looking at, such as : Name, Condition, Weight, etc. We then put all
> of the information in a MySql database. Then sedn the variables to the
> ad creation page. This page contains all the constant information
> contained in each ad, along with all the new variables that we just
> inputted. What we need to do is save this new source code to a html
> file. We have been simply right clicking, viewing source, and then
> saving it to our hard drive.
>
> What we want is a button below the ad that says, "Do you want to save
> this ad?" or simply "Save?" When we click yes it will prompt us on the
> name and the location we want for the file, and then it will save the ad
> in html format. One important note is that we do not want this new
> button included in the file we are creating. Anyone have a simple code
> we can use to accomplish this. Remember, all we want is the ad saved,
> not the new button. We want to view the ad before we save it, so the ad
> must pop up like it does now.
>
> Please help soon. We appreciate your help.
>
> Tony
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]