|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>
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: email@example.com