next Posted December 3, 2012 Share Posted December 3, 2012 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. 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 deleted 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. 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 Just realized that these values are in hidden fields of a form. Oops! Thank you 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
Archived
This topic is now archived and is closed to further replies.