nimbus Posted April 26, 2006 Share Posted April 26, 2006 Hi,I am trying to create a form with some hidden fields which become populated with information from the URL. For example, the URL would be [a href=\"http://www.blahblah.com/form.php?email=client@us.com\" target=\"_blank\"]http://www.blahblah.com/form.php?email=client@us.com[/a]And from this the email field within the form is populated with their email address.I think this is quite a simple thing to do but i can't seem to find any examples of it elsewhere. I know how to create a form etc in PHP, but just want to be able to prepopulated fields!Many many many thanks in advance!!justin Quote Link to comment Share on other sites More sharing options...
.josh Posted April 27, 2006 Share Posted April 27, 2006 short and sweet version:<?phpecho "<form>";echo "<input name='email' value='".$_GET['email']."'>";echo "</form>";?>the key thing there is the value='blah' that's what puts the text into the field 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.