Home    Cart    Free Download    Manual

Installation:
  Free Downloads
  The H2O Family
  Install Notes

Programming:
  Prerequisites
  H2O Whitepaper
  Online Manual
  Code Examples
  H2O Free Support


What's H2O?
H2O is programming made for the web.

What's it like?
H2O is English-like. If you know some Perl, VB, ASP, or PhP you'll be immediately productive in H2O. It runs on Linux, Mac, Unix, and Windows.

How do I try it?
Download H2O for free. Get it from hosting providers. Or buy on-line.

Where does H2O come from?
The language was invented by Aestiva. H2O stands for:
   HTML with
   HTML/OS
   Overlays.


Multi-file Upload

upload_multi.html


<<

file_folder="/upload_folder"
number_of_files=4
>>

<html>
<title>Upload Multiple Files</title>
<body bgcolor=white>
<<
IF err_msg != "ERROR" THEN
DISPLAY err_msg + "<br>" /DISPLAY
err_msg = "ERROR"
/IF
>>


<form method=post enctype="multipart/form-data" action=upthem><br>
<< i=1
WHILE i <= number_of_files DO
DISPLAY
'File #' + i + ': <input type=file size=30 name="' +
("F" + i + "_" + USERNUM) + '" ><br>'
/DISPLAY
i = i + 1
/WHILE
>>

<input type=submit value="Upload Now">
</form>
</body>
</html>

<<OVERLAY upthem
# H2O places uploaded files in the /upload folder.
# The uploaded file is given the same name as the
# variable in the <input type=file> statement.
/#
no_files_uploaded=0
i = 1
WHILE i <= number_of_files DO
uploadfile_name="/upload/" + ("F" + i + "_" + USERNUM+".txt")
void=FILEINFO(uploadfile_name)
IF void[2] != "" AND void[2] > 0 THEN
file_name=file_folder+"/file"+i+".txt"
FILEMOVE(uploadfile_name,file_name)
no_files_uploaded = no_files_uploaded + 1
ELSE
FILEREMOVE(uploadfile_name)
/IF
GOTO PAGE
i = i + 1
/WHILE
IF no_files_uploaded=0 THEN
err_msg = "<font color=red>No files uploaded</font>"
ELSE
err_msg = no_files_uploaded+ files uploaded"
/IF
GOTO PAGE
>>


Home | Cart | Free Download | Online Manual
COPYRIGHT © 2005 Aestiva, LLC. ALL RIGHTS RESERVED.