jgurgen Posted December 15, 2006 Share Posted December 15, 2006 im just learning php so please bare with me. Im trying to put a value inside a text box based on the linkthe page is DistrictContacts.phpwhen printed like that i want empty textboxesbut when DistrictContacts?District=SchoolNamei would like the textbox to show SchoolNameright 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 More sharing options...
JasonLewis Posted December 15, 2006 Share Posted December 15, 2006 error! your first defining of $District you dont need the $ inside of the $_GET.this:[code=php:0]$District = $_GET['District'];[/code]oh and remove the ( ) from the echo. you do not need those there... Link to comment https://forums.phpfreaks.com/topic/30729-get-value-from-address-bar/#findComment-141626 Share on other sites More sharing options...
jgurgen Posted December 15, 2006 Author Share Posted December 15, 2006 still doesnt work Link to comment https://forums.phpfreaks.com/topic/30729-get-value-from-address-bar/#findComment-141627 Share on other sites More sharing options...
jgurgen Posted December 15, 2006 Author Share Posted December 15, 2006 got ithad mispelled itemvalue='$Distrct' --> value='$District'/ Link to comment https://forums.phpfreaks.com/topic/30729-get-value-from-address-bar/#findComment-141630 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.