Forum Moderators: coopster
cannot match anything within the query url?
so [domain.com...]
will return yahooo
why doesnt this work?
unfortunately to no avail, it still doesn't recognize the characters in the URL.
I even tried
if (preg_match("post_id", $_SERVER['REQUEST_URI'])) thank you for taking your time to respond previously.
cannot match anything within the query url?so [domain.com...]
$_SERVER['REQUEST_URI'] is /google.html
$_SERVER["SCRIPT_URI"] is [domain.com...]Where is the "post_id" in [domain.com...] Isn't that actually a query string in $_SERVER["QUERY_STRING"]?
i meant i tried:
if (preg_match("google, $_SERVER['REQUEST_URI'])) {
print "yahooo";
} else {
print "hello";
}
yes, "google" would be the word in the query string in which I am trying initiate the response.
I made an error and typed: if (preg_match("post_id", $_SERVER['REQUEST_URI']))
where "post_id" shouldve been "google"
my apologies for any confusion
the source shows no sign of the script, and it does use "else" properly (properly displays: hello), when the url with "google" in it is present, it still resorts to the "else" argument, "hello". Where it should then switch to "yahooo", but doesnt (still)
thanks again for your help