Getting Values From Url Php

[Solved] Getting Values From Url Php | Php - Code Explorer | yomemimo.com
Question : getting values from url php

Answered by : munyira-samson

$id = $_GET['id'];
// OR
$id = $_REQUEST['id'];

Source : | Last Update : Sat, 13 Mar 21

Question : php get value from url

Answered by : vastemonde

<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
?>

Source : https://stackoverflow.com/questions/24396712/how-to-get-id-from-url-using-php/24396752 | Last Update : Sun, 16 May 21

Answers related to getting values from url php

Code Explorer Popular Question For Php