techiefreak05 Posted August 22, 2006 Share Posted August 22, 2006 I have some forms on my site and i was wondering if its possible to have the value of a textbox set with a url, ex.:http://mydomain.com/page1.php?textbox=example&textbox2=example2I know that doesnt work ... but to explain the example: "textbox" is the name of the textbox, and "example" is the value and so on and so forth. .. is something like this possible?? Link to comment https://forums.phpfreaks.com/topic/18286-setting-the-value-of-a-textbox-with-a-url/ Share on other sites More sharing options...
ToonMariner Posted August 22, 2006 Share Posted August 22, 2006 yepif that is your url just do this.<input type="text" name="textbox" value="<?php echo $_GET['textbox']; ?>"><input type="text" name="textbox2" value="<?php echo $_GET['textbox2']; ?>"> Link to comment https://forums.phpfreaks.com/topic/18286-setting-the-value-of-a-textbox-with-a-url/#findComment-78530 Share on other sites More sharing options...
onlyican Posted August 22, 2006 Share Posted August 22, 2006 And u can post back to the browser using GET method, not POSt<form method='get' action='".$_SERVER['PHP_SELF']."'> Link to comment https://forums.phpfreaks.com/topic/18286-setting-the-value-of-a-textbox-with-a-url/#findComment-78541 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.