We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

[3272] POSTing Form Data to a Web Page

Last post 06-02-2007 11:14 PM by sameer.alone1. 32 replies.
Page 1 of 3 (33 items) 1 2 3 Next >
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [3272] POSTing Form Data to a Web Page

    This thread is for discussions of POSTing Form Data to a Web Page.

    • Post Points: 140
  • 02-03-2003 5:57 AM In reply to

    • xenos77
    • Not Ranked
    • Joined on 02-03-2003
    • United States
    • New Member
    • Points 20

    POSTing Form Data to a Web Page

    This means that, if I have the same fields in a VB form, I can 'transfer' it into a HTML page?

    Is there any working sample that I can download?

    Well, it's brilliant...
    • Post Points: 0
  • 02-26-2003 5:00 PM In reply to

    I actually do have a sample project that does this.  Send me you're email address and I'll send it along.
    • Post Points: 10
  • 03-10-2003 7:11 AM In reply to

    Posting to Input Type File

    I'm having trouble implementing the <INPUT Type=file> posting method.
    I implemented the first method easy, but when i tried the second it just doesn't work and i cant seem to find any help anyware about the subject.
    Can you help me? I'm almost out of ideas.
    Can you post the code of TestPost.asp page, so that i can see what in the hell am i doing wrong?

    Thanks in advance!

    EDIT: I removed the HTML Syntax from the subject line that was causing a few issues on the main page...
    • Post Points: 0
  • 04-03-2003 5:39 PM In reply to

    White space disappears

    Great article! All works, except when I send a FORM field with white space it disappears.

    So when objXMLHTTP.Send reqStr "Address=1 Main Street" is processed by the server, I get "1MainStreet" with white-space gone.

    What am I doing wrong? Thanks!
    • Post Points: 0
  • 04-14-2003 4:55 PM In reply to

    • BrianG
    • Not Ranked
    • Joined on 04-14-2003
    • New Member
    • Points 5

    White space disappears

    You need to "escape" the line you are sending.  You basically convert all non alpanumeric characters to their hex code equivalent.  For example a space should be %20.  Your line should be "Address=1%20Main%20Street".

    There is a function in javascript that does this (escape and unescape).  There are various routines for doing this in VB that I can point you to.  Just let me know.

    I agree.  This article is excellent.  Excatly what I was looking for!!  

    Brian

    Quote:
    [1]Posted by dgrenader on 3 Apr 2003 05:39 PM[/1]
    Great article! All works, except when I send a FORM field with white space it disappears.

    So when objXMLHTTP.Send reqStr "Address=1 Main Street" is processed by the server, I get "1MainStreet" with white-space gone.

    What am I doing wrong? Thanks!
    • Post Points: 0
  • 04-14-2003 6:13 PM In reply to

    The string needs to be converted to its URL encoding. You can find a routine to do this at http://www.tagconsulting.com/Show.asp?Id=1027.
    • Post Points: 0
  • 04-14-2003 6:18 PM In reply to

    Sorry for the delay in responding.  There is a technique for doing this, but it is a little convoluted.  It involves using a multipart request. I'll try to put together an example on the topic in the next couple of days and post it to the site.

    • Post Points: 0
  • 06-14-2003 2:12 PM In reply to

    • Jaime
    • Not Ranked
    • Joined on 06-14-2003
    • New Member
    • Points 5

    The character" & it is eliminated of the transfer.

    He articulates it is very good, the topic of the spaces that disappear is a problem, but has solution.  
    What I cannot solve is the transmission of characters like" &","%", etc.  
     
    Front Page, uses a shipment form that converts to hexadecimal these characters before sending them.  
     
    As this it is made?
    • Post Points: 0
  • 06-18-2003 10:31 AM In reply to

    • paragm78
    • Not Ranked
    • Joined on 06-05-2003
    • New Member
    • Points 30
    Hello Bruce,

    Could you please send the sample to me also at  "paragm78@yahoo.com" ?
    I want to post form variables to a webpage from a VB application.

    Thanks.
    Parag.
    • Post Points: 0
  • 06-29-2003 10:06 PM In reply to

    • samiam
    • Not Ranked
    • Joined on 06-29-2003
    • New Member
    • Points 10

    posting data to a web page fiel

    I am trying to post my vb data to a web page field.  I have tried the code suggested with no success.

    I have pasted in the declarations to my form generalities section.  I created a command button and pasted the winlnet api code to the command button.  When I press the command button, the processor kicks up, but I see no results.  The web browser doesn't open and the desired web page never loads.  I am not receiving any errors.

    Have I missed something here.
    • Post Points: 0
  • 07-02-2003 6:09 AM In reply to

    • vhss
    • Not Ranked
    • Joined on 07-02-2003
    • New Member
    • Points 5

    After posting, I get receive same page back as tho

    I wrote a very similar code using C++.  The posted data is handled in the same page as the form.  After posting the data, i get returned to the same page as though the data was not posted.  Any ideas?
    • Post Points: 0
  • 09-17-2003 4:22 AM In reply to

    • jmuker
    • Not Ranked
    • Joined on 09-17-2003
    • New Member
    • Points 10

    How to process the Data coming back from the POST

    Guyz that was a wonderfull article, but now the other part is how do we process the data coming back as the response from the POST?
    • Post Points: 0
  • 09-17-2003 4:24 AM In reply to

    • jmuker
    • Not Ranked
    • Joined on 09-17-2003
    • New Member
    • Points 10

    Did u get it ?

    Anyone got the sample?
    Also how to parse the data coming back from the POST ?
    • Post Points: 0
  • 09-30-2003 12:27 PM In reply to

    • Warren
    • Not Ranked
    • Joined on 01-13-2002
    • Junior Member
    • Points 80

    i may have something that helps

    I didn't look at the code yet, but I wrote a program that catches machine data (through WMI and API) and posts it to a web site form.  No browser opens up or anything, I only put a thank you message in the app to let the user know data has been sent.  The purpose of the program is to keep an inventory of users hardware, etc. so that I know when to upgrade browsers/mail accounts/ HD etc.  It writes to an access db that I look up.  I've gotten the program to work on some 98/2k/xp Pro.  Running the app on some 98 machines have had problems. If you want I can email you the whole package so that you can see how it works.  
    • Post Points: 0
Page 1 of 3 (33 items) 1 2 3 Next >