CoolAffiilate Posted November 8, 2007 Share Posted November 8, 2007 Ok... The Url passes this value: http:www.mysite.com/index.php?address=test%40testtt%2Ecom how do I pass the address to a link on the page: a href="http:www.cool.com/index.php/[email protected]" Please help me out. Link to comment https://forums.phpfreaks.com/topic/76568-solved-value-from-url-help/ Share on other sites More sharing options...
pocobueno1388 Posted November 8, 2007 Share Posted November 8, 2007 You can get the address by doing this $address = $_GET['address']; As long as your URL contains that information, it will be able to be grabbed by the above code. Link to comment https://forums.phpfreaks.com/topic/76568-solved-value-from-url-help/#findComment-387765 Share on other sites More sharing options...
CoolAffiilate Posted November 8, 2007 Author Share Posted November 8, 2007 would i do this? This is what i am doing and its not getting the address < A href="http://www.cool.com/<?php $address = $_GET['address'];?>"> Link to comment https://forums.phpfreaks.com/topic/76568-solved-value-from-url-help/#findComment-387767 Share on other sites More sharing options...
pocobueno1388 Posted November 8, 2007 Share Posted November 8, 2007 That code doesn't make any sense. I'm not even sure what your trying to do. If the URL looks like this on the page you are on http:www.mysite.com/index.php?address=test%40testtt%2Ecom Then when you do this it will grab that information from the URL. $address = $_GET['address']; echo $address; //will print "test testtt Ecom" Now explain exactly what your trying to do. Your being to vague in your question to give you a better answer. Link to comment https://forums.phpfreaks.com/topic/76568-solved-value-from-url-help/#findComment-387771 Share on other sites More sharing options...
CoolAffiilate Posted November 8, 2007 Author Share Posted November 8, 2007 ok, i got it. I just was not posting the address after I called it. THANK YOU! Link to comment https://forums.phpfreaks.com/topic/76568-solved-value-from-url-help/#findComment-387778 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.