2 variables, one big problem!

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
Aaron
Forum Commoner
Posts: 82
Joined: Sun May 12, 2002 2:51 pm

2 variables, one big problem!

Post by Aaron »

I have a comment system attached to a 'news/episode/thing' I made, and depending on how you entered the news/episode then the commenting might or might not work, I could just make it so that the news/episode main page makes peeps enter under one variable, and probably will, I just wondered if theres away I 'could' get round this ;

if you entered on episode?id=xx then itll work cos the var is 'series/episode'
but if you come in on episode.php?id=xx then it wont cos the var is different!
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Re: 2 variables, one big problem!

Post by mikeq »

Aaron wrote: if you entered on episode?id=xx then itll work cos the var is 'series/episode'
but if you come in on episode.php?id=xx then it wont cos the var is different!
Look the same to me, both have a variable called 'id'
Post Reply