XMLHTTP Post method to submit data to the server side after the problem of disorderly characters!!!

Source: Internet
Author: User
xml| Server | data | issues

XMLHTTP Post method to submit data to the server side after the problem of disorderly characters!!!


This example requires two files: xmlencode.htm and xmlencode.asp
======================================
Xmlencode.htm
============

Xmlencode.asp
============


This is a method provided by Mencius E, but do not know how to use, how and the following code added together.
Stra= "submit1=submit&str=" +XMLSTR;
Objhttp.open ("Post", "yzreceive.aspx", false);
Objhttp.setrequestheader ("Content-length", stra.length);
Objhttp.setrequestheader ("Content-type", "Text/xml");
Objhttp.setrequestheader ("Content-type", "application/x-www-form-urlencoded");
Objhttp.send (Stra);

The HTM above him is just an example, you post the contents of a form directly to xmlencode.asp.

Can you elaborate on that?

Let's have a look.


Xmlhttp.setrequestheader ("Content-type", "application/x-www-form-urlencoded")



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.