Jump to content

Making a download button


graham23s

Recommended Posts

Hi Guys,

 

i currently use a basic link of text so users can down files like so:

 

<a href="download.php?id='.$id.'"><font color="red" size="5"> '.$file_name.' </font>

 

but i was wanting to make it an actual button i have tried this below but no joy

 

<form action="download.php?id='.$id.'"><input type="submit" value="Download"></form>

 

can anyone give me some advice on how to do it correctly.

 

thanks guys

 

Graham

Link to comment
https://forums.phpfreaks.com/topic/61427-making-a-download-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.