Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Junior Member spudy12's Avatar
    Join Date
    Jan 2012
    Posts
    4
    Member #
    30495
    I'm trying to get a contact form to work with my website
    I want it to send an email to an email address when they press submit. I am new to all this (relatively) but no html quite well.

    The current code on the page is this
    Code:
    <h2>Contact Form</h2>
    <form id="ContactForm" action="">
    <div class="wrapper pad_bot1">
    <div class="wrapper">
    <div class="bg"><input type="text" class="input" /></div>Your Name:<br />
    </div>
    <div class="wrapper">
    <div class="bg"><input type="text" class="input" /></div>Your E-mail:<br />
    </div>
    <div class="wrapper">
    <div class="bg"><div class="textarea"><textarea name="textarea" cols="1" rows="1"></textarea></div></div>Your Message:<br />
    </div>
    <div class="wrapper">
    <a href="#" class="button" onClick="document.getElementById('ContactForm').submit()"><span><span>send</span></span></a>
    <a href="#" class="button marg_right1" onClick="document.getElementById('ContactForm').reset()"><span><span>clear</span></span></a>
    </div>
    </div>
    </form>
    How can i get this to work? an example email address would be contact[at]joshtatam.co.uk

    Many thanks
    Josh

  2.  

  3. #2
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    You have no action defined in your form, that will be the page you send your details to to process either email, db or whatever.

    Since most hosting providers have certain restriction on how they allow mail to be handled, there is no set answer for this.

    Depending on your host.... Most decent hosting providers have a help and support FAQ, and they usually explain how to get a basic form mail to work on their system.

    Some require you to send it to THEIR cgi processor, some allow you to use your own scripts, some require you to send it to a specific location.

    Check with them on their recommendations.

  4. #3
    Junior Member spudy12's Avatar
    Join Date
    Jan 2012
    Posts
    4
    Member #
    30495
    thanks for the quick reply!
    My host is 000webhost. I know they allow me to run my own scripts, or use a DB or phpadmin etc. which way would you recommend doing it?

    Many thanks
    Spud

  5. #4
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    Search these forums for PHP mail, I think you'll get lots of advice for that host

  6. #5
    Junior Member spudy12's Avatar
    Join Date
    Jan 2012
    Posts
    4
    Member #
    30495
    Well I have a very good php script i used previously on another website that has spam checking built in.
    The only problem is its built in to a webpage, but i guess i can just put it in a separate file?
    my only problem would be linking the two together, where could i find some guides on it?
    attached is the code

    Spud

    PS. Sorry i'm new to all this

  7. #6
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    I understand why you are asking your questions here, but in reality, if you search these forums you'll find the answer to make something work, then if you have problems, you can post the code youre working with and the errors and your more likely to get help.

    Posting general questions really doesn't do anyone any good... It's all in the details and error messages.

  8. #7
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  9. #8
    Senior Member Andrew Yurlov's Avatar
    Join Date
    Apr 2011
    Location
    Portland, OR
    Posts
    1,306
    Member #
    27566
    Liked
    181 times
    Quote Originally Posted by spudy12, post: 228427
    thanks for the quick reply!
    My host is 000webhost. I know they allow me to run my own scripts, or use a DB or phpadmin etc. which way would you recommend doing it?

    Many thanks
    Spud
    If your using 000webhost for free you cant' use php mail(to) function.
    Artificial intelligence is nothing compared to natural stupidity -Someone

    Design is a funny word. Some people think design means how it looks.
    But of course, if you dig deeper, itís really how it works.
    -Steve Jobs




Remove Ads

Posting Permissions

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

Search tags for this page

000webhost cgi script form submit

,

000webhost contact form

,

000webhost contact form not working

Click on a term to search for related topics.
All times are GMT -6. The time now is 04:38 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com