sjjs1985 Posted August 23, 2011 Share Posted August 23, 2011 ok so I just want to get the username into the url after the button is clicked <?php $val = 123; ?> <a href="index.php>Button</a> How do I get the href to be index.php?user=123 all help greatly appreciated. thanks Quote Link to comment https://forums.phpfreaks.com/topic/245491-put-variable-into-url-via-button-href/ Share on other sites More sharing options...
trq Posted August 23, 2011 Share Posted August 23, 2011 <a href="index.php?user=<?php echo $val; ?>">Button</a> Quote Link to comment https://forums.phpfreaks.com/topic/245491-put-variable-into-url-via-button-href/#findComment-1260889 Share on other sites More sharing options...
sjjs1985 Posted August 23, 2011 Author Share Posted August 23, 2011 thank you, i thought there would be a shorter way of doing it Quote Link to comment https://forums.phpfreaks.com/topic/245491-put-variable-into-url-via-button-href/#findComment-1260896 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.