ASP Form - process standard x-www-form-urlencoded data with unicode code page and unlimitted size. | ActiveX/VBSScript registry editor
ActiveX NT User account manager
Export MDB/DBF from ASP
Url replacer, IIS url rewrite Active LogFile Email export ActiveX/ASP Scripting Dictionary object
| ||
| Sample for ScriptUtils.ASPForm |
| Accept application/x-www-form-urlencoded in unicode utf-8 |
|---|
|
This sample demontrates accepting of a plain form (Form without ENCTYPE="multipart/form-data") by Huge-ASP file upload, ASPForm Object. Full source is in form-url-encode-utf-8.asp sample file.
|
| ASP Form - process standard x-www-form-urlencoded data with unicode code page and unlimitted size. | |
|---|---|
<%@ Codepage=65001 %> <% 'set character set for outgoing data (and incomming also, of course) Response.CharSet = "utf-8" 'Create a form object Dim Form: Set Form = Server.CreateObject("ScriptUtils.ASPForm") 'Set the same character set for Form object Form.CharSet = Response.CharSet Dim Field For Each Field In Form.Fields If Field.Length>0 Then Response.Write "<br>" & Field.Name & ":" Response.Write Field 'or binarywrite with other page-level Codepage than 65001 'response.BinaryWrite Form.StringToBinary(Field, "utf-8") End If Next %> <TABLE cellSpacing=1 cellPadding=3 bordercolor=silver bgcolor=GAINSBORO width="100%" border=1> <form method="POST"> <tr><td> Field1 : </td><td><input Name=Field1 Size=50 value="<%=Form("Field1")%>"></td></tr> <tr><td> Field2 : </td><td><input Name=Field2 Size=50 value="<%=Form("Field2")%>"></td></tr> <tr><td ColSpan=2 Align=right> <input Name=SubmitButton Value="Submit >>" Type=submit> </td></tr> </form> </TABLE> | |