1

I'm having some issues populating my input html tag with the parameter in the url.

Here's the Url I'm using: www.website.com/index.html?inventory=100

And here's the basic html going on

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Title</title>
  </head>
  <body>


<input type="text" name="inventory" value="<?php echo 00((isset($_GET["inventory"]))?htmlspecialchars($_GET["inventory"]):""); ?>"/>

</body>
</html>

Help!

DMill
  • 39
  • 2
  • What is it you want to do? `00(functionCall)` is never going to work. – Loek Jun 08 '18 at 14:41
  • Possible duplicate of [How to get parameters from a URL string?](https://stackoverflow.com/questions/11480763/how-to-get-parameters-from-a-url-string) – saurabh kamble Jun 08 '18 at 14:43
  • Sorry if I wasn't clear. I want to populate the input form box with the parameter given in the url on page load. In this case, 100 – DMill Jun 08 '18 at 15:00
  • Also that "00" before functionCall is a typo. Not sure how that got in there – DMill Jun 08 '18 at 15:32

0 Answers0