Vince0511 Posted October 18, 2007 Share Posted October 18, 2007 Wie kan mij helpen, ik kom maar snel met het probleem... pagina2.html heb ik <a href="index.php?kleur=rood"> klik voor rood </a> maar hoe zet ik dit dan in index.php? Link to comment https://forums.phpfreaks.com/topic/73839-how-do-i-change-vars-in-a-link/ Share on other sites More sharing options...
SammyGunnz Posted October 18, 2007 Share Posted October 18, 2007 English translation please. Link to comment https://forums.phpfreaks.com/topic/73839-how-do-i-change-vars-in-a-link/#findComment-372513 Share on other sites More sharing options...
Vince0511 Posted October 18, 2007 Author Share Posted October 18, 2007 allright, i'll try my pagina2.html contains <a href="index.php?kleur=rood"> click for rood</a> but what do i have to do at index.php? Link to comment https://forums.phpfreaks.com/topic/73839-how-do-i-change-vars-in-a-link/#findComment-372518 Share on other sites More sharing options...
SammyGunnz Posted October 19, 2007 Share Posted October 19, 2007 allright, i'll try my pagina2.html contains <a href="index.php?kleur=rood"> click for rood</a> but what do i have to do at index.php? index.php can look like.... <?php if(isset($_GET['kleur'])) { $kleur = $_GET['kleur']; } ?> Link to comment https://forums.phpfreaks.com/topic/73839-how-do-i-change-vars-in-a-link/#findComment-373355 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.