acegames Posted May 27, 2009 Share Posted May 27, 2009 Hello , I am trying to set each site with $site=1 $site=2 $site=3 etc and passing that to a download page On the download page I want to add something like "If site = 1 then I can echo "Site 1" "If site = 2 then I can echo "Site 2" How would I do that ? Link to comment https://forums.phpfreaks.com/topic/159850-solved-sending-site-as-variable/ Share on other sites More sharing options...
Ken2k7 Posted May 27, 2009 Share Posted May 27, 2009 You can use GET. <?php $site = isset($_GET['site'])? $_GET['site'] : ''; Think you can take it from there? Link to comment https://forums.phpfreaks.com/topic/159850-solved-sending-site-as-variable/#findComment-843087 Share on other sites More sharing options...
acegames Posted May 27, 2009 Author Share Posted May 27, 2009 Thanks , I dont know how to now add if $site=1 to set it to echo "SITE 1" Link to comment https://forums.phpfreaks.com/topic/159850-solved-sending-site-as-variable/#findComment-843090 Share on other sites More sharing options...
Ken2k7 Posted May 27, 2009 Share Posted May 27, 2009 I would advice you to learn PHP. That's baby stuff. <?php if ($site == '1') echo 'Site 1'; Link to comment https://forums.phpfreaks.com/topic/159850-solved-sending-site-as-variable/#findComment-843119 Share on other sites More sharing options...
acegames Posted May 27, 2009 Author Share Posted May 27, 2009 Thanks , Im trying to learn as I go , just having a bad day today Link to comment https://forums.phpfreaks.com/topic/159850-solved-sending-site-as-variable/#findComment-843122 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.