witham Posted March 5, 2008 Share Posted March 5, 2008 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 https://forums.phpfreaks.com/topic/94565-file-navgation/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.