| | |
Passing a LINK as a session variable
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2006
Posts: 1
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Jul 2004
Posts: 494
Reputation:
Solved Threads: 21
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
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.
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.
•
•
Join Date: Jan 2006
Posts: 53
Reputation:
Solved Threads: 0
•
•
•
•
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.
![]() |
Similar Threads
- Session Variable clashing (ASP.NET)
- Losing session variable problem...help! (ASP)
- session variable undefined in MX 6.1, works in CF 5 (ColdFusion)
- Session variable (ASP.NET)
- session variable:again (ASP.NET)
Other Threads in the PHP Forum
- Previous Thread: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Extra content
- Next Thread: Problems using a php generator
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array back beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email error file files filter folder form forms function functions gc_maxlifetime google host href htaccess html image include insert integration ip java javascript joomla limit link login loop mail memmory memory menu mlm mod_rewrite multiple mysql navigation oop parse parsing paypal pdf php problem query radio random recursion regex remote script search server sessions sms snippet soap source space sql structure syntax system table thesishelp tutorial update upload url validation validator variable video web xml youtube





