um, i have a rogue forward slash

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!

Moderator: General Moderators

Post Reply
IAK
Forum Newbie
Posts: 2
Joined: Sun Jul 14, 2002 11:39 am

um, i have a rogue forward slash

Post by IAK »

ok, i am using a page entitled "me.php" and i am passing a variable to this page and then using that variable to include different pages. the variable is being passed from "me.php" to "me.php".
so, what im doing is, for instance, being on "me.php?inc=news" and loading "me.php?inc=morenews", but, when i do this, the browser loads "me.php?inc=morenews/". this doesnt work as the page "me.php?inc=morenews/" doesnt exist. i know the above may not be very clear, but can anyone help me/help me to clarify the question??

thankyou.
fatalcure
Forum Contributor
Posts: 141
Joined: Thu Jul 04, 2002 12:57 pm
Contact:

Post by fatalcure »

uhm, it shouldn't do that, whats your link setup like?

<a href='me.php?inc=news'>News</a>
<a href='me.php?inc=morenews'>More News</a>


Then you can just use case statements or if statements to work with the $inc variable, i have no idea why it would add a slash at the end...kinda funny :o
IAK
Forum Newbie
Posts: 2
Joined: Sun Jul 14, 2002 11:39 am

Post by IAK »

god, i dont know why i posted now. it was my trippy code that did it. what i was doing was printing a load of separate variables to construct the hyperlink and i got the slashes the wrong way round - im kinda new to this, started php yesterday (? i think). anyway, thanks fro trying to help me, the unhelpable.

cheers,
IAK
EricS
Forum Contributor
Posts: 183
Joined: Thu Jul 11, 2002 12:02 am
Location: Atlanta, Ga

No prob

Post by EricS »

Welcome IAK,

No one in here was coding PHP at birth. We've all been there and done that.
:D
Good Luck 8)
Post Reply