The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> PHP hyperlinks/links scripting: How to?
Defcon
post Apr 23 2007, 06:40 AM
Post #1





Group: Members
Posts: 1
Joined: 23-April 07
Member No.: 2,603



Hye again!

I got some basic PHP scripting here. Let say like this on normal HTML scripting code is like this:

<a href="clikme.php">ClickMe!</a>

But on PHP how i can do with some "longer url/ID" let say like this:

<a href="index.php?whatever=whatever">clickMe!</a>

Our senario is, both of script above is hyperlink with a same file.

Thanxs
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Apr 23 2007, 11:52 AM
Post #2


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



I'm not sure what you're asking. Are you trying to figure out how to display different content based on whether there is information in the query string ("...?whatever=whatever")? Or are you trying to figure out how to have two different URLs refer to the same PHP file ("clikme.php" vs "index.php")?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th April 2024 - 11:45 AM