Answers for "how to get url value in php"

PHP
11

php get full url

$fullURL = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
Posted by: Guest on October-30-2019
3

php get url with get

$full_url = 'http://'.$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI];
Posted by: Guest on March-26-2021
1

getting values from url php

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

$id = $_REQUEST['id'];
Posted by: Guest on March-06-2021
-1

send data with url in php

// Send the variables myNumber=1 and myFruit="orange" to the new PHP page...
<a href="page2.php?myNumber=1&myFruit=orange">Next page</a>
Posted by: Guest on January-31-2020

Browse Popular Code Answers by Language