Posted: Tue Dec 12, 2006 9:29 pm Linking around a php file.
Ok this is probably a really stupid question but I am asking it couldn't find anything about it using google probably cause I was searching the wrong thing.
I am trying to use a link in html to link to another part of a php file. I have a script displaying a directory and using looping to show the pages in the directory but I am trying to have it where when the press a image link in that loop it goes to another part of that script that contains another web page which carry's out the delete.
Here is an example of my code:
Code:
<?php
// path to the folder listed - can be full path
//$path = "/var/www/html/";
//or relative path
$path = "./";
// Open the folder for display
$dir_handle = @opendir($path) or die("Unable to open $path");
I know there is probably some syntax errors in that. But thats what I am trying to do I am trying to link !!Delete!! in the link in the loop to the !!Delete!! part of the script.
Also if there is a way of putting the php script right in the link I would rathe r do that like this:
Code:
<?php
// path to the folder listed - can be full path
//$path = "/var/www/html/";
//or relative path
$path = "./";
// Open the folder for display
$dir_handle = @opendir($path) or die("Unable to open $path");
Oh, lol I kinda posted this awhile ago and have already figured out what I needed to do. But thanks for the response still atleast someone responded to it.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum