jaisol99 Posted October 29, 2009 Share Posted October 29, 2009 Hi All I want to transfer data via web page link, I can get my code to work with 1 variable but not 2 or more. I seem to remeber I need to include '&' somewhere but can't figure out where. Here's the code <a href="test.php?val=15 val2=guppt awonga">Test values</a> I want to get val1 and val2 .. val99. Many thanks Quote Link to comment https://forums.phpfreaks.com/topic/179534-solved-simple-_get-problem/ Share on other sites More sharing options...
ashton321 Posted October 29, 2009 Share Posted October 29, 2009 Put it right between them. ?val1=99&val2=89 Quote Link to comment https://forums.phpfreaks.com/topic/179534-solved-simple-_get-problem/#findComment-947330 Share on other sites More sharing options...
Maq Posted October 29, 2009 Share Posted October 29, 2009 test.php?val=15&val2=guppt awonga The first variable is prefixed with the question mark, every variable after that is prefixed with the ampersand. You're also going to have a problem with that href link because there is a space, which needs urlencode invoked on it. Quote Link to comment https://forums.phpfreaks.com/topic/179534-solved-simple-_get-problem/#findComment-947332 Share on other sites More sharing options...
jaisol99 Posted October 29, 2009 Author Share Posted October 29, 2009 Many thanks for the quick responces Quote Link to comment https://forums.phpfreaks.com/topic/179534-solved-simple-_get-problem/#findComment-947341 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.