Jump to content

Save as dialog button


emediastudios

Recommended Posts

I wanted to know if there was a php code that i could assign to a button that would open the save as dialog box.

I have used some code that i found on the net but i cant seem to get the box to open.

This is the code im using.

 

<script language="JavaScript">

var isReady = false;

function doSaveAs(){

if (document.execCommand){

if (isReady){document.execCommand("SaveAs");}

}else{

alert('Feature available only in Internet Exlorer 4.0 and later.');

}

}

</script>

then i get the button to doSaveAs()

 

I know this is a javascript question but i was unsure if there was a way of doing it with php?

 

Link to comment
https://forums.phpfreaks.com/topic/76997-save-as-dialog-button/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.