graham23s Posted July 23, 2007 Share Posted July 23, 2007 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 More sharing options...
The Little Guy Posted July 23, 2007 Share Posted July 23, 2007 why don't you just use an image? Link to comment https://forums.phpfreaks.com/topic/61427-making-a-download-button/#findComment-305719 Share on other sites More sharing options...
redarrow Posted July 23, 2007 Share Posted July 23, 2007 <?php echo"<a href='what_ever.php?file_name.zip'><img src='button_image.jpg'></img></a>"; ?> Link to comment https://forums.phpfreaks.com/topic/61427-making-a-download-button/#findComment-305728 Share on other sites More sharing options...
Dragen Posted July 23, 2007 Share Posted July 23, 2007 <?php echo"<a href='what_ever.php?file_name.zip'><img src='button_image.jpg'></img></a>"; ?> redarrow, I can't see why you've closed the image tag like that... Image tags should be closed like this: <img src="button_image.jpg" /> Link to comment https://forums.phpfreaks.com/topic/61427-making-a-download-button/#findComment-305748 Share on other sites More sharing options...
redarrow Posted July 23, 2007 Share Posted July 23, 2007 sorry dragen need coffe Link to comment https://forums.phpfreaks.com/topic/61427-making-a-download-button/#findComment-305752 Share on other sites More sharing options...
Dragen Posted July 23, 2007 Share Posted July 23, 2007 hehe Your idea seemed good though Link to comment https://forums.phpfreaks.com/topic/61427-making-a-download-button/#findComment-305756 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.