Jump to content


Setting the value of a textbox with a url???

  • Please log in to reply
2 replies to this topic

#1 techiefreak05

  • Members
  • PipPipPip
  • Advanced Member
  • 494 posts
  • LocationER, MN

Posted 22 August 2006 - 10:30 AM

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.:


I 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 shortener with advanced, detailed statistics:


#2 ToonMariner

  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 22 August 2006 - 10:38 AM


if 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']; ?>">
follow me on twitter @PHPsycho

#3 onlyican

  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 22 August 2006 - 11:16 AM

And u can post back to the browser using GET method, not POSt
<form method='get' action='".$_SERVER['PHP_SELF']."'>
Tell me the problem, I will try tell you the solution

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users