I am trying to submit a VB form over to an ASP page for processing. I had
this brilliant idea to reuse my ASP page for assigning user accounts to
assign a user account through an VB form as well.

To transmit the VB form I am using XMLHTTP. The code looks like this...
    Dim sTransportReturn As String
    
    Dim oHTTPTransport As MSXML.XMLHTTPRequest
    Set oHTTPTransport = New MSXML.XMLHTTPRequest
    With oHTTPTransport
        .Open "POST", g_HomeURL & "MyScripts/UpdateDB.asp", False
        .setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
        .send sValues

        sTransportReturn = .responseText
    End With

Everything works great in the transport except when it comes to spaces. If
I set my Update.asp page to Response.Write the entire contents of the
form, it prints my sValues String as it came in, With the spaces.

But when I try to response.Write an individual value (i.e.
Request.Form("SomeValue")) and that value has spaces, I find that the
spaces have been completely removed.

I have tried to replace the spaces with %20 to see if ASP would
automatically place the spaces back. That failed.

I am now thinking that there is a ASP header I can use to preserve Spaces.

Question:
Is the problem with ASP or is it with the XMLHTTP transport? I have
submitted forms with ASP a million times and have never seen this problem,
which leads me to believe the issue is with the XMLHTTP transport.
Hopefully someone else has seen this problem and can give good advice.

Thanks...

Sincerely frustrated, 

Osie Brown

---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to