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 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> 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 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
Archived
This topic is now archived and is closed to further replies.