Passing a LINK as a session variable

Reply

Join Date: Aug 2006
Posts: 1
Reputation: SparkieNZL is an unknown quantity at this point 
Solved Threads: 0
SparkieNZL SparkieNZL is offline Offline
Newbie Poster

Passing a LINK as a session variable

 
0
  #1
Aug 31st, 2006
Hi,

Im new to PHP but seem to be picking it up quite quickly, i have how ever come up against an issue which i cant seem to solve and i was wondering if someone out there could give me some pointers

what i have done is setup a user details database (SQL) and with the search it might bring up a bounch of user names, i have made the USERNAME the link but what i need to do is pass the clicked on USERNAME to be carried to the next page as a variable, what i did was make the $Usernamelink = USERNAME but if there are more than 1 result from the search it just takes the 1st name in the result and makes the variable = to that and not the one the person actually clicks on

Any idea's ?

Thanks guys/gals
Aaron.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 494
Reputation: Puckdropper is an unknown quantity at this point 
Solved Threads: 21
Puckdropper Puckdropper is offline Offline
Posting Pro in Training

Re: Passing a LINK as a session variable

 
0
  #2
Aug 31st, 2006
Sounds like you need a tutorial on forms and variable passing methods.

This page looks like a good start:
http://www.rci.rutgers.edu/~jfulton/php1/forms.html
www.uncreativelabs.net

Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 53
Reputation: Barnz is an unknown quantity at this point 
Solved Threads: 0
Barnz Barnz is offline Offline
Junior Poster in Training

Re: Passing a LINK as a session variable

 
0
  #3
Sep 1st, 2006
Originally Posted by SparkieNZL View Post
Hi,

Im new to PHP but seem to be picking it up quite quickly, i have how ever come up against an issue which i cant seem to solve and i was wondering if someone out there could give me some pointers

what i have done is setup a user details database (SQL) and with the search it might bring up a bounch of user names, i have made the USERNAME the link but what i need to do is pass the clicked on USERNAME to be carried to the next page as a variable, what i did was make the $Usernamelink = USERNAME but if there are more than 1 result from the search it just takes the 1st name in the result and makes the variable = to that and not the one the person actually clicks on

Any idea's ?

Thanks guys/gals
Aaron.
I could help you, but I do not understand what you are trying to do?
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 43
Reputation: mmonaco27 is an unknown quantity at this point 
Solved Threads: 0
mmonaco27's Avatar
mmonaco27 mmonaco27 is offline Offline
Light Poster

Re: Passing a LINK as a session variable

 
0
  #4
Sep 4th, 2006
ditto
I honostly can't stand computers, networks, hardware, software, databases, programming languages, php, c++, mysql, windows, linux, macs, solaris, processors, protocols, servers, clients, chats, ims, emails, and so forth and so on; but I find myself rather intrigued...
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 2
Reputation: saroberts is an unknown quantity at this point 
Solved Threads: 0
saroberts saroberts is offline Offline
Newbie Poster

Re: Passing a LINK as a session variable

 
0
  #5
Sep 12th, 2006
You need to make the whole display a form and each username a select option to be passed

read the suggested tutorial
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC