Passing a value in the URL for use by PHP
When you pass a value in a URL, like this: https://www.mysite.com/mypage.php?id=20
You can access the value (or values) passed as follows:
$myid = $_GET['id'];
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
When you pass a value in a URL, like this: https://www.mysite.com/mypage.php?id=20
You can access the value (or values) passed as follows:
$myid = $_GET['id'];