Quick Question about LInks

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Stangguy
Forum Newbie
Posts: 12
Joined: Thu Feb 01, 2007 9:31 pm

Quick Question about LInks

Post by Stangguy »

When I used to mess around coding in .ASP you could put varibles in a link like this:

http://www.test.com/getbook.asp?book=1234

Can you do this sort of coding in PHP? What does the code look like?

Thanks,
Al
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Of course. And the link looks exactly the same.

You retrieve the variables from an array called $_GET[].
Stangguy
Forum Newbie
Posts: 12
Joined: Thu Feb 01, 2007 9:31 pm

Post by Stangguy »

Thanks.
Stangguy
Forum Newbie
Posts: 12
Joined: Thu Feb 01, 2007 9:31 pm

Post by Stangguy »

Fixed it thanks!
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Umm.. You're welcome. Twice.
Post Reply