Hello,
I am using a wysiwig editor (Spaw)
That allows the use of checking the refferer for the dynamicly changing location of the image path to upload to.
The reffer is:
http://www.domain.net/traveltalk.php?mode=post&forum_id=1
or
http://www.domain.net/traveltalk.php?mode=reply&forum_id=1&main_id=15
Were forum_id could be any number and main_id could be any number.
How do I program an if statement that covers this?
if ($reffer == "http://www.domain.net/traveltalk.php?mode=post&forum_id=[any number]" or $reffer == "http://www.domain.net/traveltalk.php?mode=reply&forum_id=[any number]&main_id=[any number]"){
$imgpath = "path_to_images/";
}else{
$imgpath = "some_other_path/";
}
Thank You,
Chris Wheat