login about faq

I'm having trouble doing a simple post to this website using c# .net 4


I have tried few of your examples from your website but they all display the same message below. it should display firstname and lastname . could you please give me an example to see how you can accomplish a simple post like this. thank you.

asked Oct 24 '12 at 11:23

chilkat's gravatar image

chilkat ♦♦

The HTML form to be duplicated is this:

<!DOCTYPE html>

<form action="demo_form_method.asp" method="get" target="_blank"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> <input type="submit" value="Submit"> </form>

<p>Click on the submit button, and the input will be sent to a page on the server called "demo_form_method.asp".</p>

</body> </html>

Notice that the form tag's "method" attribute is "get". Therefore, it's not sending a POST; it's sending a GET. To duplicate this form, simply call httpObject.QuickGetStr like this:

(in pseudo-code)
htmlStr = httpObject.QuickGetStr("http://www.w3schools.com/tags/demo_form_method.asp?fname=John&lname=Smith"


answered Oct 24 '12 at 11:27

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 24 '12 at 11:23

Seen: 2,642 times

Last updated: Oct 24 '12 at 11:27

powered by OSQA