Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing variable to the same page from LINK - not from FORM 1

Status
Not open for further replies.

aspx

Programmer
Jul 25, 2002
52
BG
Hi!
Is it possible to pass variable's value to the same page from hyperlink (I know how to do it using form(PHP-SELF), but I need from link - it's more compact)?...
Example
<a href=&quot;mypage.php?id=test&quot;>send value</a>

Thanks in advance for any help.
 
Yes, it's definately possible... but need more specifics, it depends where the variable is coming from, is it a php variable or a form variable which you want to pass via a link?

-Rob
 
You can submit forms without seeing them:

<form method=post action=&quot;next.php&quot;>
<input type=hidden name=&quot;somevar&quot; value=&quot;someval&quot;>
....
</form>

<a href=&quot;#&quot; onClick=&quot;document.forms[0].submit(); return false;&quot;> --BB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top