Eivo Posted December 18, 2006 Share Posted December 18, 2006 Is it possible to pass a variable with a <a href> link? Kind of how a form does. If so, how? Link to comment Share on other sites More sharing options...
jesh Posted December 18, 2006 Share Posted December 18, 2006 You could always do something like this: <a href="mypage.html?myvariable=myvalue">Click Me</a> Link to comment Share on other sites More sharing options...
jlhaslip Posted December 18, 2006 Share Posted December 18, 2006 and then use some php or asp to process the variable. Link to comment Share on other sites More sharing options...
Sniffy Posted December 19, 2006 Share Posted December 19, 2006 or js void(0)....<a href='java script: alert("Hello World")'>Click me</a> Link to comment Share on other sites More sharing options...
Kristian_C Posted December 19, 2006 Share Posted December 19, 2006 Fullcode -------------------------------------Link<a href=page.php?variable=value>value</a> if(strip_tags($_GET[What u want])){$What you want=strip_tags($_GET[what you want]);mysql_query("what u want");echo "what u want";} just had to was bored Link to comment Share on other sites More sharing options...
Eivo Posted December 20, 2006 Author Share Posted December 20, 2006 Thank you very much Link to comment Share on other sites More sharing options...
Kristian_C Posted December 20, 2006 Share Posted December 20, 2006 What u gonna make? =) Link to comment Share on other sites More sharing options...
Eivo Posted December 20, 2006 Author Share Posted December 20, 2006 What u gonna make? =)Working on a site for the local volunteer fire dept. I'm working with asp and databases and all kinds of stuff I don't fully understand yet, lol. But it's coming along. I needed this to pull the correct article from the database. Link to comment Share on other sites More sharing options...
Sniffy Posted December 20, 2006 Share Posted December 20, 2006 Good luck, it takes a lot of work but you'll get a great result! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now