View Single Post
Old 05-09-2004, 10:29 PM   #1
RaGe
Green Mole
 
Join Date: Apr 2004
Posts: 12
External Banner Systems That Are Keyword Controlled

Ok, this has been a headache and a half. Some search engines query passes the keywords to the engine like:

<INPUT TYPE=text name=q size=25 maxlength=255 value="{KEYWORDS}">

PhPDig, and several others including Google use:

<INPUT TYPE=text name=q size=25 maxlength=255 value="">

Now, where this causes a problem, at least for my feeble, non-PhP oriented mind, is when external programs such as adserver softwares rely on a Javascript keyword call such as:

<script language="Javascript" src="http://www.whateverwebsite.com/adserver/index.php?section=serve&action=1&q={KEYWORDS}">
</script>

I bet i've spent 60 hours trying to figure this out, Alvin and JyG are wizards at making PhPDig pass keywords to external scripts like PhPAdsNew but i cant grasp the examples they posted and they seem to be in rather high demand and arent on here much.
ECHO wont work in the middle of a Javascript call so i cant ECHO the $query_string into the code. q="> or q="'> ignores all keywords and brings back all ads regardless of what your search was for and SSI seems to contribute to global warming :S

Considering i'm a week behind figuring this out, i'm in a bit of a pickle. I will gladly reward whoever can resolve my delima. Charter, i have a feeling you're laughing your butt off and knew the answer before even getting to this closing statement. Throw me a rope wouldya?

[RAGE]
RaGe is offline   Reply With Quote