fortnox007 Posted October 22, 2010 Share Posted October 22, 2010 Hi all, I am not sure if this is possible but I am trying to provide people a link to a page (not mine btw) with values already filled in. So for them it's faster to submit the form. Problem is the Form is using method post. what i tried was the following but it didn't work. there is an input field: <input type="text" value="" maxlength="255" size="10" id="numpoints" name="numpoints" class="inputbox required"> So i thought if I just make an url like : http://godzillaeatsbananas.com/index.php?numpoints=100 it would fill in the field with a value of 100 but it doesn't Anyone might have an idea on how to accomplish this. Thanks! Link to comment https://forums.phpfreaks.com/topic/216570-filling-in-values-with-get/ Share on other sites More sharing options...
AbraCadaver Posted October 22, 2010 Share Posted October 22, 2010 The only way to do it is if you have access to modify the form and it is a PHP file. Then you would set the value in the input: value="<?php echo $_GET['numpoints']; ?>" Link to comment https://forums.phpfreaks.com/topic/216570-filling-in-values-with-get/#findComment-1125243 Share on other sites More sharing options...
fortnox007 Posted October 22, 2010 Author Share Posted October 22, 2010 hehe i was afraid of that thanks alot though for your reply. have a nice day! Link to comment https://forums.phpfreaks.com/topic/216570-filling-in-values-with-get/#findComment-1125271 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.