Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get value from url

<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 by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #url
ADD COMMENT
Topic
Name
5+1 =