PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
// *** Read the value of "Download" (POST or GET method).
if (isset(($_POST['Download'])) $fileName = $_POST['Download'];
if (isset(($_GET['Download'])) $fileName = $_POST['Download'];
// *** Build the link string.
$downloadLink = "<a href=\"$fileName\">Download</a>";
but i not sure what i need to do with it (i did not write it)
i don't know if it goes with my form or the insert script here they are.
this is the form
to link to a new word doc that i have upload on to my site i will be able to just type test.doc and it will create the link in mysql database which is then displayed on the table
I suggest putting it after your php script, with echo $downloadLink; after the line where you make the link string, then after the data's put into the database, you can then go directly to your document. Also, where you put this: