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?? Quote Link to comment 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']; ?>"> Quote Link to comment 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']."'> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.