The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Auto response php form Reply To: Auto response php form


I am trying to do the same thing. I have a php form with upload capabilities but I think it is coded somewhat differently than the post above. I tried the suggested solution above to no avail. Could someone please help me out with this?

I need an autoreponse for the the listed code. Any help would be appreciated:

    Contact Form from HTML Form Guide
    This program is free software published under the
    terms of the GNU Lesser General Public License.
    See this page for more info:

$formproc = new FGContactForm();
$captcha = new FGCaptchaCreator('scaptcha');


//1. Add your email address here.
//You can add more than one receipients.
$formproc->AddRecipient('[email protected]'); //<<---Put your email address here

//2. For better security. Get a random tring from this link:
// and put it here



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "">
<html xmlns="" xml:lang="en-US" lang="en-US">
      <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
      <title>Contact us</title>
      <link rel="STYLESHEET" type="text/css" href="contact.css" />
      <script type='text/javascript' src='scripts/gen_validatorv31.js'></script>
      <script type='text/javascript' src='scripts/fg_captcha_validator.js'></script>
<body link=white alink=whit vlink=white>

<!-- Form Code Start -->
<form id='contactus' action='<?php echo $formproc->GetSelfScript(); ?>' method='post' enctype="multipart/form-data" accept-charset='UTF-8'>

<fieldset >
<legend>Song Submission Form</legend>

<input type='hidden' name='submitted' id='submitted' value='1'/>
<input type='hidden' name='<?php echo $formproc->GetFormIDInputName(); ?>' value='<?php echo $formproc->GetFormIDInputValue(); ?>'/>
<input type='text'  class='spmhidip' name='<?php echo $formproc->GetSpamTrapInputName(); ?>' />

<table cellpadding=10>
<div class='short_explanation'>* required fields</div>

<div><span class='error'><?php echo $formproc->GetErrorMessage(); ?></span></div>
<div class='container'>
    <label for='name' >Artist Name*: </label><br/>
    <input type='text' name='name' id='name' value='<?php echo $formproc->SafeDisplay('name') ?>' maxlength="50" /><br/>
    <span id='contactus_name_errorloc' class='error'></span>
<div class='container'>
    <label for='email' >Email Address*:</label><br/>
    <input type='text' name='email' id='email' value='<?php echo $formproc->SafeDisplay('email') ?>' maxlength="50" /><br/>
    <span id='contactus_email_errorloc' class='error'></span>
<div class='container'>
    <label for='website' >Website*:</label><br/>
    <input type='text' name='website' id='website' value='<?php echo $formproc->SafeDisplay('website') ?>' maxlength="100" /><br/>
    <span id='contactus_website_errorloc' class='error'></span>

<div class='container'>
    <label for='song' >Your Song:</label><br/>
    <input type="file" name='song' id='song' /><br/>
    <span id='contactus_song_errorloc' class='error'></span>
<div class='container'>
    <div><img alt='Captcha image' src='show-captcha.php?rand=1' id='scaptcha_img' /></div>
    <label for='scaptcha' >Enter the code above here:</label>
    <input type='text' name='scaptcha' id='scaptcha' maxlength="10" /><br/>
    <span id='contactus_scaptcha_errorloc' class='error'></span>
    <div class='short_explanation'>Can't read the image?
    <a href='javascript: refresh_captcha_img();'>Click here to refresh</a>.</div>

<div class='container'>
    <input type='submit' name='Submit' value='Submit' />
All submissions MUST be named in the following format: Artist_Name_-_Song_Title.mp3 using an underscore in place of any spaces. Any submissions not formatted correctly will be ignored. Thank you.

<!-- client-side Form Validations:
Uses the excellent form validation script from>

<script type='text/javascript'>
// <![CDATA[

    var frmvalidator  = new Validator("contactus");
    frmvalidator.addValidation("name","req","Please provide your name");

    frmvalidator.addValidation("website","req","Please provide your website URL");

    frmvalidator.addValidation("email","req","Please provide your email address");

    frmvalidator.addValidation("email","email","Please provide a valid email address");

    frmvalidator.addValidation("song","file_extn=mp3","Upload .mp3 files only.");

    frmvalidator.addValidation("scaptcha","req","Please enter the code in the image above");

      = new FG_CaptchaValidator(document.forms['contactus'].scaptcha,

    function SCaptcha_Validate()
        return document.forms['contactus'].scaptcha.validator.validate();


    function refresh_captcha_img()
        var img = document.images['scaptcha_img'];
        img.src = img.src.substring(0,img.src.lastIndexOf("?")) + "?rand="+Math.random()*1000;

// ]]>