Simple FORM to Register using the default mail software from client machine, snce hfs does not support any server side code....
this is the code used
locate the head of your template and insert this code between the tag:
...
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>HFS %folder%</title>
<style type="text/css">
%style%
</style>
<link rel="shortcut icon" href="favicon.ico" />
<script language="javascript">
function popUpRegistration(){
win = window.open('HFS-Registration','Registration', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=400,left = 0,top = 0');
win.document.write("<div id='heading'>");
win.document.write("<h1>");
win.document.write("<img src='/~img_folder'>");
win.document.write("%host%");
win.document.write("</h1>");
win.document.write("</div>");
win.document.write("<div class='grid'>");
win.document.write("<strong>Email Registration");
win.document.write("</strong>");
win.document.write("<FORM NAME='HFS-RegForm' Enctype='text/plain' action='mailto:YOUREMAIL@SOMESERVER?Subject=HFS-Registration' method='post'>");
win.document.write("<span class='style3'>Register to acess the protected area </span><br>");
win.document.write("<br>");
win.document.write("<b>");
win.document.write("Real Name: <input name='field_name' type='text' size='80'><br>");
win.document.write("Desired Password: <input name='field_password' type='text' size='10'> 10 chars max. <br>");
win.document.write("Connection Speed: <input type='text' name='field_speed'> Kbps. <br>");
win.document.write("E-mail: <input type='text' name='field_email'><br>");
win.document.write("Login Name: <input type='text' name='field_login'> if different from Real NAME <br>");
win.document.write("<input type='submit' value='Send'></b>");
win.document.write("</FORM>");
win.document.write("<p class='style1'>the info above will be sended to this HFS admin e-mail. and will be checked before the registration be accepted, you will recieve a e-mail confirmation from");
win.document.write("<a href='mailto:YOUREMAIL@SOMESERVER' class='style2'>");
win.document.write("Administrator</a>");
win.document.write(".");
win.document.write("</p>");
win.document.write("</div>");
}
</script>
</head>
...
dont forget to edit where is writed
"YOUREMAIL@SOMESERVER"and to call this form
use this code in ANY part of your template
<a href="javascript:popUpRegistration();" class=register><img src="/~img20" /> Register</a>
you can change and share here your tests....
here some sample....
sample 1
sample 2
and yeah!, it is javascript, but only to do the pop-up, and it use the default client mail, work on all browsers...
[attachment deleted by admin]