PDA

Click to See Complete Forum and Search --> : How in the heck do you post to CGI


Scootchie
Nov 26th, 2000, 03:04 AM
Somebody has got to know the answer to this, I know it can't be this hard. If your HTML looks like this:

<INPUT type=hidden name=.done><INPUT type=hidden name=.fam>

And you want post the above values, so your code would look like this:

strUrl = "http://www.blah.com"
Inet1.Execute strUrl, "post", [the above values from the html]

What EXACTLY is the code to post those values?!?! Please, I'm begging here. I've spent hours looking for this simple answer. Thanking you in advance...

Scootchie

da_silvy
Nov 26th, 2000, 03:23 AM
doesn't .done and .fam have to have a value?
<INPUT type=hidden name=done value=yeah>
<INPUT type=hidden name=fam value=woohoo>

try this:

strUrl = "http://www.blah.com?done=yeah&fam=woohoo"
Inet1.Execute strUrl

Scootchie
Nov 26th, 2000, 11:00 AM
Yes, I meant to use HTML with values but I'd probably been drinking heavily. What if this were a just a web page with fields, not necessarily a CGI? Would it still work?

Scootchie (again)

Dim
Nov 27th, 2000, 05:37 PM
Yes it should. If not then you can use the WebBrowser Control like so:

WebBrowser1.Navigate "http://www.mysite.com/fields.asp"
WebBrowrer1.Document.Forms(0).done.Value = "yeah"
WebBrowrer1.Document.Forms(0).fam.Value = "woohoo"
WebBrowser1.Document.Forms(0).proceed.Click


Gl,
D!m