Hey Jason, thanks for that, one question though I would also like to include in the IF condition for the incoming domain name.
for example lets say I create a competition page with the competition id (so that I can create multiple competitions for different websites that are all separate)
example lets say I create w competition for webassist.
I would then provide webassist a link www.mydomain.com/Competition.php?CompetitionID=1
WebAssist would then put this link up on their website somewhere so theu users can then click on the link and enter the competition....
..HOWEVER...lets say Adobe.com find this link on WebAssist website and then copy the link and place it on their website...I don't want this allowed...so the only way is to do an IF condition based on the incoming URL so that I make sure that for that particular competitionID that it checks for the webassist domain and accepts any visitors incoming from that domain.