Jump to content

Curl - How To Get Value Of Postfields?


next

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.