Click to See Complete Forum and Search --> : How do I get the POST/GET data in CHTMLView?


May 26th, 1999, 12:48 PM
How do i get to the parameters of a FORM post/get in CHTMLView or the Web browser control. I want to react to a submit button in an embedded browser.

Gringo
July 16th, 1999, 03:26 PM
If it was the POST method, you receive a single string, with the variable separated with an & ( like name=me&address=here,...)

If it was the GET method, you will have to browse thru the array of the environment variable like : environ[i] ...

Good luck ...

Quia nominor leo.

Ryan@Neoworx
July 16th, 1999, 03:44 PM
Actually, it's the other way around.

However, I'm not sure what you're trying to do. Do you want to react to the form fields on the client or the server?

If on the client, the easiest way would be to use javascript on the page. Or use the DHTML Document Object Model to get the form values in C++.

Easiest way to do this is use the BeforeNavigate2 function. One thing it's passed is the POST data. GET data will be in the URL, and can be parsed out rather easily.

Ryan

NeoWorx Inc.
http://www.neotrace.com/img/gettrace_b.gif
Makers of NeoTrace, NeoLite, and other upcoming products
http://www.neoworx.com/