display a querystring on a page using PHP? What is wrong with me? :(
Can someone please spare me from madness and explain how I display a querystring value on a PHP page?
<?php $_GET['dcID']; ?>
...doesn't work.
I'm trying to use the querystring value as the value for a form field:
<input type="text" value"<?php $_GET['dcID']; ?>" name="carselected" id="carselected">
Please help. Thank you.
NJ
EDIT:
This doesn't work either:
<input type="text" value"<?php echo((isset($_GET["dcID"]))?$_GET["dcID"]:"") ?>" name="carselected" id="carselected">