Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> How To Get A Link Like "index.php?act=home"?
Cameronk_uk
post Apr 29 2006, 10:23 AM
Post #1


Newbie [ Level 1 ]
Group Icon

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, blink.gif

-----Please use descriptive titles for your topics-----szupie

This post has been edited by szupie: Apr 29 2006, 01:26 PM
Go to the top of the page
 
+Quote Post
Houdini
post Apr 29 2006, 01:02 PM
Post #2


Super Member
Group Icon

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>
Go to the top of the page
 
+Quote Post
szupie
post Apr 29 2006, 01:22 PM
Post #3


S.P.A.M.S.W.A.T.
Group Icon

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
Go to the top of the page
 
+Quote Post
Houdini
post Apr 29 2006, 03:28 PM
Post #4


Super Member
Group Icon

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.
Go to the top of the page
 
+Quote Post
jlhaslip
post Apr 29 2006, 07:47 PM
Post #5


Advanced Member
Group Icon

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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Dyndns (get A Domain Name For Your Home Computer)(6)
  2. Find Out Dead Links In Your Site Automatically(11)
  3. My New Home Theatre(2)
  4. Sharing Files In Windows Xp Home(14)
  5. How To Control Home Computer Remotely?(12)
  6. Choosing A Different Joomla Start Page(4)
  7. Windows Problems "new Series"- Xp Home Edition Activation Issue(6)
  8. Listening To Music Over A Home Network(16)
  9. Link(5)
  10. [tutorial] Pc-pc Home Networking.(7)
  11. Your Home Server!(5)
  12. Imagemap With Image As Other Link(0)
  13. Home Security And Alarm Monitoring(0)
  14. A Man's Home Is His Castle(16)
  15. Increase Internet Speed For Win Xp Home(9)
  1. Website Directory !(3)
  2. Avast! 4 Home Edition(0)
  3. Dir2html 1.1.0(4)
  4. Indexmaker 1.01(5)
  5. Simple Ubuntu Based Home File Server | For Newbies(1)
  6. Can't Select Database =?(3)
  7. Was My Site Data Copied By Someone?(6)
  8. Home(0)
  9. Making A Link = Mysql_query(8)
  10. Home Work?(6)
  11. Site Link Analyzer Tool(1)
  12. Home Automation Using Bluetooth(3)
  13. Explorer Does Not Run(5)


 



- Lo-Fi Version Time is now: 6th July 2008 - 11:00 PM