|
|
|
|
![]() ![]() |
Apr 29 2006, 10:23 AM
Post
#1
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 2 Joined: 29-April 06 Member No.: 13,094 |
Hi, does anyone no how you can get a link like this??
http://lkdk.com/index.php?act=home ?? thanks, -----Please use descriptive titles for your topics-----szupie This post has been edited by szupie: Apr 29 2006, 01:26 PM |
|
|
|
Apr 29 2006, 01:02 PM
Post
#2
|
|
|
Super Member Group: Members Posts: 572 Joined: 25-April 05 From: Nashville Tennessee Member No.: 4,340 |
Not sure what you mean it is just a php script passing a variable named act and setting the value of it to home through the URL to be used on the page index.php it could simply be an HTML anchor like
CODE <a href="http://kdk.com/index.php?act=home">Home page</a>
|
|
|
|
Apr 29 2006, 01:22 PM
Post
#3
|
|
|
S.P.A.M.S.W.A.T. Group: Members Posts: 814 Joined: 22-January 05 From: San Antonio, Texas (No, I'm not dumb. I just moved here...) Member No.: 2,284 |
The variable in the URL is not only used with PHP. It could be used with ASP, simply an HTML GET form, or web applications like Flash, Java, etc.
In your example, http://lkdk.com/index.php?act=home, act is the name of the variable, and home is the value of the variable act. You can include a second variable by placing a & between two variables, like so: http://lkdk.com/index.php?act=home&variable2=away |
|
|
|
Apr 29 2006, 03:28 PM
Post
#4
|
|
|
Super Member Group: Members Posts: 572 Joined: 25-April 05 From: Nashville Tennessee Member No.: 4,340 |
Sorry if I used PHP as an example but it is more widely used than ASP and the sample link given was a php index page so I acted accordingly. I use PHP because it is not dependant on a particluar server just the fact that PHP is supported whereas ASP is not. Neverthelss their are variable being passed with the URL requiring a get function to do something with the variable.
|
|
|
|
Apr 29 2006, 07:47 PM
Post
#5
|
|
|
Advanced Member Group: Members Posts: 179 Joined: 15-November 05 From: Inland from the Left Coast of Canada Member No.: 9,627 |
read This tutorial and the one before it to get a fuller explaination and a sample of the method used to do just that. It isn't too tough to do.
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 7th August 2008 - 11:28 PM |