Forum Moderators: coopster

Message Too Old, No Replies

link a file

         

yllai

7:18 am on Jun 3, 2004 (gmt 0)

10+ Year Member



in index.php (in dir dlofer "Brochure"), I want to link to test.php in the same directory, I have coded as below:-
<a href='modules.php?name=Brochure&file=test'>

if I saved test.php in another floder within dir floder "Brochure" named "Page"..means that floder "Page" was in floder "Brochure"..so how do I code the hyperlink

I have try coded as:-
<a href='modules.php?name=Brochure&file=Page/test'>
but it cant work...anyone know how should I code it?

RonPK

9:17 am on Jun 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What happens when ou use more quotes:

<a href='modules.php?name=Brochure&file="Page/test"'>

dcrombie

10:08 am on Jun 3, 2004 (gmt 0)



You need to use the urlencode [php.net] function, or replace / with %2F.

yllai

1:03 am on Jun 4, 2004 (gmt 0)

10+ Year Member



I have tried..but I dint fix my problem..page still cant be display. Any other solution for it?

WhosAWhata

4:04 am on Jun 4, 2004 (gmt 0)

10+ Year Member



the link looks ok, are you sure it isn't something with your script