Advanced Search

Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Contact form..how..?

  1. #1
    Join Date
    Apr 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Contact form..how..?

    how I can do to work out a contact form?
    I have to put data? which one?
    I have to change some data, add ..?

    I am starting my own business site and do not know how to do.

    Code:
    <a href="#" class="link2 right" onclick="document.getElementById('ContactForm').submit()">Send</a>
    <a href="#" class="link2 right" onclick="document.getElementById('ContactForm').reset()">Clear</a>
    thanks in advance.

  2. #2
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    586
    Thanks
    41
    Thanked 27 Times in 27 Posts

    Default

    There are tons of contact or feedback forms available.

    It is hard to figure out what one would need just from the little you have posted.

    Do a Google search and find something you like and if you need help post here with what you find/want


    here is a link to my favorite form tutorial;
    http://devingredients.com/2011/03/bu...-from-scratch/
    Last edited by ajfmrf; 04-25-2012 at 12:11 AM. Reason: add a link
    Thanks,

    Bud

  3. #3
    Join Date
    Apr 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    that is what I put and where? .. my email ..? more stuff I have to do?

    I want to know what data and where, when people send me this way .. I put and where? .. my email ..? the address..? where? ...
    more stuff I have to do? .. this is a question and not known as .. am self taught and i dont know how to do.

    Code:
    <section id="content"><div class="ic"></div>
    				<div class="line1">
    					<article class="col1">
    						<h2>Let Us Contact you... E-mail us!</h2>
    						<form id="ContactForm" action="#" method="post">
    							<div class="wrapper">
    								<div class="col_1">
    									<p>Your Name:</p>
    									<p>Your E-mail:</p>
    									<p>Your Message:</p>
    								</div>
    								<div class="col_2">
    									<input type="text" class="input">
    									<input type="text" class="input">
    									<textarea cols="1" rows="1"></textarea>
    								</div>
    							</div>
    							<div class="wrapper">
    								<a href="#" class="link2 right" onclick="document.getElementById('ContactForm').submit()"><b><i>Send</i></b></a>
    								<a href="#" class="link2 right" onclick="document.getElementById('ContactForm').reset()"><b><i>Clear</i></b></a>
    							</div>
    						</form>
    					</article>
    this is the form...thank you again.

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,629
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Your question is unclear.
    Please provide more information, and be as specific as possible.
    • What do you want to accomplish?
    • What have you already tried?
    • What problems did you encounter?

    Also, please be sure that you have included all relevant code and/or a link to the page in question.


    • What information do you want to collect from users?
    • What do you want to do with the information afterwards?
    • If this is the actual form you're using, what do you want to happen when you submit it?
    • What server-side language do you plan to use?


    As it stands, you question is far too vague to answer. It's okay that you don't know how to do it, but please be as specific as possible when describing what you want to do.
    We Only Torture the Folks We Don't Like (You're Probably Gonna Be Okay)
    It's a Party in the CIA

  5. #5
    Join Date
    Apr 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    here is the site:
    Code:
    http://www.cottys.co.cc/contacts.html
    I do not know the data that I have to put ... when people click on send ... where it goes that information? .... where? that is what I have to do?
    thank you.

  6. #6
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    586
    Thanks
    41
    Thanked 27 Times in 27 Posts

    Default

    Hi blah blah,upload these files to the same directory.
    http://www.web-user.info/test/form/captcha.txt
    http://www.web-user.info/test/form/contacta.txt
    http://www.web-user.info/test/form/style.txt

    After you have done that rename these as follows:

    captcha.txt becomes captcha.php

    contacta.txt becomes contact.php


    style.txt becomes style.css

    The next thing you have to do is change a few things in the contact.txt/contact.php file

    if (empty($error)) {
    $from = 'From: ' . $name . ' <' . $email . '>';
    $to = "my@email.com";
    $subject = "New contact form message";
    $content = $name . " has sent you a message: \n" . $message;
    $success = "<h3>Thank you! Your message has been sent!</h3>";
    mail($to,$subject,$content,$from);
    }
    }
    ?>

    change the part that says

    "my@email.com" change the email address to what you want to use.This will be the
    email that all the replies to your contact form will go to.It will be the first thing to check if
    it is not working when you first try it.

    I usually will also change the subject line so I know which one of mine is being used
    (I will use more then one for different things)

    $subject = "New contact form message"; I would in this case just use "Cottys contact
    form message"

    I will leave these up until you post you have them or if I don't see anything saying so
    I will delete the files in the evening.

    Post or email me if you need more help
    Thanks,

    Bud

  7. #7
    Join Date
    Apr 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you a lot...I will...
    thank you.

  8. #8
    Join Date
    Apr 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    if it works good ... now
    ..how I do to pass to my contact page? (contacts.html)
    I want the same style of the page (the one I have now) .. where I have to put the mail ?... the name of the page where send me to a page that tells you that already has been sent the message, but should go with the same style of the page .. as i do?

    and thank you very much again..

  9. #9
    Join Date
    Apr 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i go it..
    thank you.....now...
    how modify this code for use in my page contacts.html?

  10. #10
    Join Date
    Apr 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks for your help...
    this is the best I could do...

    http://www.cottys.co.cc/contacts.php

    only i need put the image .....
    thanks.

Bookmarks

Posting Permissions

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