Click to See Complete Forum and Search --> : ?


DanUK
07-09-2003, 01:14 PM
Good evening!
I was just wondering...one some websites you see pages with further links. I.e. on a 'staff' page, you will have their name, and when you click on it, it brings up their picture and stuff, usually it's like http://some.site/staff.html?id=name, or something.
How do you create those types of things, or is it related to PHP or something?
thanks if you can give any information on this for me.
Many thanks and have a great evening.

David Harrison
07-09-2003, 01:40 PM
No, it's javascript. It'll be a script that detects the ? in the add bar and the equals sign so then it can find the id and name parts and then it will create a variable called id with value name:
var id="name"
and with this information it can display the appropriate information, in this case, about the member of staff.

DanUK
07-09-2003, 01:43 PM
ok great thanks, where can i read some examples of this :\ ?

David Harrison
07-09-2003, 02:28 PM
Yeah sure, here's the script that Dave Clark provided me with when I had a similar query.