Answers for "$_GET Variables in PHP"

PHP
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

php get data from url

// previous link 
<a href="test_get.php?subject=PHP&web=W3schools.com">Test $GET</a>
// the code
<?php
echo "Study " . $_GET['subject'] . " at " . $_GET['web'];
?>
Posted by: Guest on November-03-2020

Browse Popular Code Answers by Language