Jump to content

Get value from address bar


jgurgen

Recommended Posts

im just learning php so please bare with me.

Im trying to put a value inside a text box based on the link
the page is DistrictContacts.php
when printed like that i want empty textboxes
but when DistrictContacts?District=SchoolName
i would like the textbox to show SchoolName

right now my text box just stays empty

[code]<html>
<head>
</head>
<body>
<?PHP
$District = $_GET['$District'];
$District = urldecode($District);

echo("<form id='form1'>");
echo("<input name='cheees' type='text' value='$Distrct'/>");
echo("</form>");
?>
</body>

</html> [/code]
Link to comment
https://forums.phpfreaks.com/topic/30729-get-value-from-address-bar/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.