next Posted December 3, 2012 Share Posted December 3, 2012 (edited) How do I retrieve values of post fields? For instance when I look at a page with Temper Data FF extension, it shows a bunch of post fields, some of them are blank, but some have values already preset. Example: subtotal = 70 priorApproval = False How can I get those values and put them into variables for future use? P.S. they aren't visible in URL itself. Edited December 3, 2012 by next Quote Link to comment https://forums.phpfreaks.com/topic/271547-curl-how-to-get-value-of-postfields/ Share on other sites More sharing options...
MDCode Posted December 3, 2012 Share Posted December 3, 2012 (edited) deleted Edited December 3, 2012 by SocialCloud Quote Link to comment https://forums.phpfreaks.com/topic/271547-curl-how-to-get-value-of-postfields/#findComment-1397261 Share on other sites More sharing options...
requinix Posted December 3, 2012 Share Posted December 3, 2012 I'd use something like DOMDocument to find all the form fields you want and grab their default values (which you do according to the type of field, like dropdown or textbox or radio button). Depends on the structure of the page, and whether they're using lots of IDs or class names or whatever. Quote Link to comment https://forums.phpfreaks.com/topic/271547-curl-how-to-get-value-of-postfields/#findComment-1397266 Share on other sites More sharing options...
next Posted December 3, 2012 Author Share Posted December 3, 2012 (edited) Just realized that these values are in hidden fields of a form. Oops! Thank you Edited December 3, 2012 by next Quote Link to comment https://forums.phpfreaks.com/topic/271547-curl-how-to-get-value-of-postfields/#findComment-1397267 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.