Login   Register  
PHP Classes
elePHPant
Icontem

HTML link utilization with PHP

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Top level forums  >  PHP Specialists  >  General  >  HTML link utilization with PHP  
Subject:HTML link utilization with PHP
Summary:Can't download a file after clicking the hyperlink
Messages:7
Author:Kazi Md. Ali Murtaza
Date:2008-12-02 10:30:22
Update:2008-12-03 07:37:54
 

  1. HTML link utilization with PHP   Reply   Report abuse  
Picture of Kazi Md. Ali Murtaza
Kazi Md. Ali Murtaza
2008-12-02 15:36:11
Hello,

I have a code like this:

/*
$query = "SELECT id, documentPath FROM documentbase WHERE CategoryTitle='Project Org Chart'";

$result = mysql_query($query,$conn) or die('Error, query failed');
$temp = mysql_fetch_row($result);

if($temp[0] != "")
{
?>
<a href="<?php echo $temp[1]; ?>">Project Org Chart</a>
<?php
}
?>

*/

When I keep my pointer on the link it displays an address like below:
file:///D:/Document_Base/StandardDocTest2.doc

But when I click on that to download nothing happens!! I can right click on that link and choose "Save Target As" option but I want the "Save As" dialog box to be appeared with a single left mouse button click. Please advice.

There are 6 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.