Hello, I try to build an advanced contact form out of two cost free contact forms. I created already an index.html file, which contains both contact forms, but only the lower contact form works correctly. If the email address is inserted in the php-part of the html-file (the provider must support php), can be sent already emails over an internet site with attached files. However the good contact form is the upper contact form, which is only an unlinked form until now, which not can be used to send emails. Thus the design of the upper contact form must be transferred onto the lower contact form or the function of the lower contact form must be transferred onto the upper contact form. Does contingent anyone know, how it can be realized to enable the function of the upper contact form through the editing of the index file? It is would be good if anywhere is available a good contact form with file upload for free, I have searched a whole day long to find them. Who would not prefer to use a contact form with file upload for his webpage than a form without.
The decompressed files can be uploaded directly to the webspace, through the opening of the index file the contact forms can be shown.
The code of the index-file, which must be edited:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Contact Form</title>
<!-- PHP skript of the second contact form: insert email -->
<?PHP
require_once("./include/fgcontactform.php");
$formproc = new FGContactForm();
$formproc->AddRecipient('insert@email.com'); //<<---Put your email address here
//2. For better security. Get a random tring from this link: http://tinyurl.com/randstr
// and put it here
$formproc->SetFormRandomKey('HG9hPBpn9Bn26yg');
</fieldset>
</form>
<!-- client-side Form Validations:
Uses the excellent form validation script from JavaScript-coder.com-->
<script type='text/javascript'>
// <![CDATA[
var frmvalidator = new Validator("contactus");
frmvalidator.EnableOnPageErrorDisplay();
frmvalidator.EnableMsgsTogether();
frmvalidator.addValidation("name","req","Please provide your name");
frmvalidator.addValidation("email","req","Please provide your email address");
frmvalidator.addValidation("email","email","Please provide a valid email address");
frmvalidator.addValidation("message","maxlen=2048","The message is too long!(more than 2KB!)");
Bookmarks