Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2014
    Thanked 0 Times in 0 Posts

    Contact form not submitting info

    Hi there.

    I have downloaded a contact form which i have appear on my website. When I click the 'send' button nothing happens- it doesn't submit or go through to thank you page. The form does work in someway as when you try to submit without all 'required' info it flags it up. I think i must be missing something. Please can somebody see if they can tell by the code? Thanks

    <script language="javascript">var sa_email_id = '11881-7f253';var sa_sent_text = 'Thank you for contacting us. We will get back to you soon.';</script>
    <script language="javascript" src="http://s1.smartaddon.com/sa_htmlform.js"></script>
    <div id="sa_contactdiv">
    <form name=sa_htmlform style="margin:0px" onsubmit="return sa_contactform()">
    <tr><td>First Name: <span style="color:#D70000">*</span><br><input type="text" name="firstname" required="true" /></td></tr>
    <tr><td>Second Name: <span style="color:#D70000">*</span><br><input type="text" name="secondname" required="true" /></td></tr>
    <tr><td>E-mail Address: <span style="color:#D70000">*</span><br><input type="text" name="email" required="true" /></td></tr>
    <tr><td>Upload CV:<br><input type="file" name="selectedfile" /></td></tr>
    <tr><td>Subject:<br><input type="text" name="subject" /></td></tr>
    <tr><td>Message: <span style="color:#D70000">*</span><br><textarea name="message" cols="42" rows="9" required="true"></textarea></td></tr>
    <tr><td><input type="submit" value="Send Message" style="font-weight:bold"></td></tr>
    </form><div style="padding-top:10px"></div></div></input></br></input></br></input></br></input></br></input></br></input></br>

  2. #2
    Supreme Master coder!
    Join Date
    Jun 2003
    Cottage Grove, Minnesota
    Thanked 1,168 Times in 1,159 Posts
    You need some sort of server-side script (using PHP, Perl, ASP, etc) to process the HTML form and send it out. Do you have some scripting that you're not showing us?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts