buconine
04-22-2007, 09:55 PM
hi all,
i've been fooling around with this thing for a couple of days and just am not seeing the light. i have a link on my site that inserts a file number off the db and loads the appropriate page for the customer. unfortunatly i seem to have an issue with the person not uploading the files before making the page available to the customer.
i am using this for the link:
echo "<a href='http://www.blah.com/inspect.php?ref=" . rawurlencode($thisLINK) . "'>View File</a>";
$thisLINK is the value of the file name. is it easier to validate that the file exists before loading the page or to validate that the link is functional first?
if /filepath/ != $thislink
error page
else
normal page
something like that?
hope this makes sense and thanks for an help!!
i've been fooling around with this thing for a couple of days and just am not seeing the light. i have a link on my site that inserts a file number off the db and loads the appropriate page for the customer. unfortunatly i seem to have an issue with the person not uploading the files before making the page available to the customer.
i am using this for the link:
echo "<a href='http://www.blah.com/inspect.php?ref=" . rawurlencode($thisLINK) . "'>View File</a>";
$thisLINK is the value of the file name. is it easier to validate that the file exists before loading the page or to validate that the link is functional first?
if /filepath/ != $thislink
error page
else
normal page
something like that?
hope this makes sense and thanks for an help!!