Jump to content

File navgation


witham

Recommended Posts

Hi I have a web application I am building and I would really like to navigate to a file so that this file path is subsequently rendered in a php script table as a link to the file.

I have been reading alot about file upload but I don't think this is what I need as I only want to show the link where the file is and not actually upload it!

 

This is the existing script:

 

</select></td></tr>

<tr><td class="style8">Product Name:</td>
<td class="style8"><input type text name="ProdName"></td></tr>
<tr><td class="style8">Product File Path:</td>
[color=red]<td class="style8"><input type text name="FilePath"></td></tr>[/color]
<tr><td class="style8">Product Equivalent:</td>
<td><input type text name="ProdEquiv"></td></tr>

 

The FilePath is the variable I want to pass to the script that handles the displaying of the link:

 

{

// $row["fieldname"] returns the content for the field in the current row

   	echo "<tr><td>" .$row["MANNAME"].  "</td>";

   	echo "<td>"   .$row["prodtype"].  "</td>";

   	echo "<td>"   .$row["FilePath"].  "</td>";

echo "<td><a href=\"http://localhost/".$row["Compsheet"].".pdf\">".$row["Compsheet"]."</a></td>";

   	echo "<td>"   .$row["prodequiv"].  "</td></tr>";



}


// close html table tag
echo "</table>\n";

 

I would be grateful if anyone could give me some assistance.

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.