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/[email protected]\" target=\"_blank\"]http://www.blahblah.com/[email protected][/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 Link to comment https://forums.phpfreaks.com/topic/8469-pre-populated-forms-from-query-string/ 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 Link to comment https://forums.phpfreaks.com/topic/8469-pre-populated-forms-from-query-string/#findComment-31224 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.