ASP Form - process standard x-www-form-urlencoded data with unicode code page and unlimitted size.

Sample for ScriptUtils.ASPForm | Changes | Purchase | Download

Examples

 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.
      ASPForm object has some great functionality against of Request.Form: size limit for ASPForm object is 2GB. Request.Form(...) can accept maximum of 100kB.
       ASPForm acepts ANY code page. This page is written in utf-8. It lets you write and mix some special character sets and characters such are hebrew (קבוצות דיון), arabic (مجموعات), east-european (žluťoučký kůň), russian (Картинки), japanese (イメージ) or chinese (圖片).
      You can have the characters NOT only in HTML page, you can use them in input fields, of course. ASPForm accepts application/x-www-form-urlencoded and multipart/related data and contains automatic detection of type of a source form.

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>

Other links for the ASP Form - process standard x-www-form-urlencoded data with unicode code page and unlimitted size. sample

ScriptUtils

Huge ASP upload is easy to use, hi-performance ASP file upload component with progress bar indicator. This component lets you upload multiple files with size up to 4GB to a disk or a database along with another form fields. Huge ASP file upload is a most featured upload component on a market with competitive price and a great performance . The software has also a free version of asp upload with progress, called Pure asp upload , written in plain VBS, without components (so you do not need to install anything on server). This installation package contains also ScriptUtilities library. Script Utilities lets you create hi-performance log files , works with binary data , you can download multiple files with zip/arj compression, work with INI files and much more with the ASP utility.

© 1996 - 2011 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz


Other Motobit links:   IISTracer, real-time IIS monitor   ASP file upload - upload files to ASP. 
ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object