Hi.
Is it possible to pass a variable from one php file to another php file using href?
I know u can use sessions or cookies but I need to pass the variable through an url.
I tried " href=var.php?variable='test' " but that didn't work.
Can you guys help me?
passing variable using href
Moderator: General Moderators
I do that quite frequently.
and it works quite happily but remember your varaible is then coming in via the GET method and not POST.
Code: Select all
<a href="somePage.php?someVarName=someVarValue&var2=var2Value">somePage</a>-
Cryptkeeper
- Forum Newbie
- Posts: 17
- Joined: Wed Nov 10, 2004 3:05 am