Results 1 to 4 of 4

Thread: How in the heck do you post to CGI

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    2

    Angry

    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

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    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:
    Code:
    strUrl = "http://www.blah.com?done=yeah&fam=woohoo" 
    Inet1.Execute strUrl



  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    2

    Unhappy

    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)

  4. #4
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Yes it should. If not then you can use the WebBrowser Control like so:
    Code:
    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
    Dim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width