Answers for "php get query string from url"

PHP
1

php get query string

<?php
	echo $_GET["query_name"]; // url queries are stored in $_GET 
?>
Posted by: Guest on November-17-2020
19

php get

<form action="/" method="get">
  <input type="text" name="name">
  <br>
  <input type="submit">
</form>
<?php
  echo $_GET["query"];
?>
Posted by: Guest on October-03-2020
0

get the url without the query string php

// get the url before the first occurence of "?"
$url = strtok($_SERVER["REQUEST_URI"], '?');
Posted by: Guest on October-29-2021

Code answers related to "php get query string from url"

Browse Popular Code Answers by Language