Click to See Complete Forum and Search --> : need help.


Horza
01-08-2004, 12:47 PM
Ok im looking for a javascript guru :)

Ive been working on a website for quite some time. Ive got a top100 running. (thats all the site is) And as you know, people can log hits in and out on most of them.

That is true of my one, but with a difference. People are given a link to vote for the site they submited which they can add to there site, with most Top100's. On my one (which i want to move it more towards a community or database) people are giving a <script etc..></script> which includes a file on my server which displays a small banner advertising the community.

The actual tag is,

<script type="text/javascript" src="http://www.gamerforums.org/linksite/test.php?ID=2"></script> <-- ID 2 for example.

On this banner i want to display a link saying 'Click to vote for this site.' And the link will "USE" the ID of the include to add it to the URL in the script file. So that the link will then go to the vote page of the Top100 for that Site-ID.

I dont know how to "USE" the ID. Ive been to plenty of websites like this with webmasters to help me. But they all told me how to do it but never explained how to use the Code they showed me. And it was using javascript functions i have never seen before.

Anyone who can help would have my eternal gratitude :) And i would give credit.

Horza
01-08-2004, 02:38 PM
Ok this is something i would have thought could really challange you guys.

Its really something i need help with.

ray326
01-08-2004, 05:12 PM
Well it's not really a Javascript question. From your URL it looks like you're running a PHP-enabled site so what you really need to find out is, "How do I access the Query String parameters from PHP?" I'm sure Ryan can fill you in on that if you post this in the PHP forum. I'm PHP-stupid myself.

Horza
01-08-2004, 06:46 PM
Everyone says this first :D

Ok heres my beef. It doesnt want to work with PHP. I tried and im pretty handy at bodging something together to make it work with PHP. But it never wanted to work.

if i changed the script tag to type="text" would it read it other that javascript? because at the moment its not reading PHP only javascript.

ray326
01-08-2004, 08:21 PM
Maybe then if you showed me an example of the code the others gave you but didn't expain I might be able to understand what your problem is. Right now I don't.

Horza
01-08-2004, 09:14 PM
Well. I gave up on this project about a month ago and yesterday came back to it. LOL. So i cant find any of the posts i originally made.

It was something about makinf a varible from the information in the URL.