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

          Sample for ScriptUtils.ASPForm 

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 ASP Form - process standard x-www-form-urlencoded data with unicode code page and unlimitted size.
      Easy to use, hi-performance ASP file upload component with progress bar indicator. Let's you upload multiple files with size up to 2GB to a disk or database along with another form fields. Works with large posts, any character set (including unicode utf-8). Contains one-click multiple files/folders download with on-the-fly compression (Using BinaryWrite/BinaryRead).
      Hi-performance text file logging for ASP/VBScript/VBA applications. Lets you create daily/weekly/monthly log files with variable number of logged values and extra timing and performance info.
       Lets you work with safearray binary data in VBS/JS. It also enables conversion between binary and String data using several code pages. ZLib compress and uncompress functions. Lets you transfer files using compressed stream from a client to server using IE.
      This library also enables calling of some Kernel and Advapi functions (performance, timing, sleep, configuration ...) and enables native work with INI files.


1996 2005 Motobit Software, help{at}pstruh.cz, help v. 2.16.14