Mendapatkan nilai dari URL PHP
$id = $_GET['id'];
// OR
$id = $_REQUEST['id'];
Samson Munyira
$id = $_GET['id'];
// OR
$id = $_REQUEST['id'];
<a href="index.php?id=<?php echo $my_id;?>&name=<?php echo $my_name;?>Click</a>
<?php
$id = intval($_GET['id']); // integer value
$name = strval($_GET['name']); // string value
?>
// previous link
<a href="test_get.php?subject=PHP&web=W3schools.com">Test $GET</a>
// the code
<?php
echo "Study " . $_GET['subject'] . " at " . $_GET['web'];
?>