Answers for "get parameter php"

PHP
0

get parameter in php

<?php

  // if your url is http://link?var=value
  
if (isset($_GET['var'])) // works with request
	$var = $_GET['var'];
echo $var;

// output value
Posted by: Guest on August-12-2021
0

get parameter php

<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
?>
Posted by: Guest on May-09-2021

Browse Popular Code Answers by Language