PDA

View Full Version : Contact form..how..?



JFlores
04-24-2012, 07:59 PM
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.


<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.

ajfmrf
04-25-2012, 12:09 AM
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/building-a-php-contact-form-with-captcha-from-scratch/

JFlores
04-26-2012, 03:49 PM
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.



<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.

traq
04-26-2012, 07:13 PM
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.

JFlores
04-26-2012, 09:01 PM
here is the site:

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.

ajfmrf
04-26-2012, 09:29 PM
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

JFlores
04-26-2012, 09:47 PM
Thank you a lot...I will...
thank you.

JFlores
04-26-2012, 10:59 PM
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..

JFlores
04-27-2012, 08:22 PM
i go it..
thank you.....now...
how modify this code for use in my page contacts.html?

JFlores
05-03-2012, 06:58 PM
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.

keyboard
05-04-2012, 05:44 AM
only i need put the image .....


What image, what do you want to do with the image and where?

In your posts you're being very non-descriptive. Please try and provide as much information as possible as this will make it easier to help you

ajfmrf
05-04-2012, 04:39 PM
JFlores,what happened to the files I sent you?

The page had all the images you originally had all in the same place except the annoying margue-lol

the images were in the same place and it looked quite good.

After our last email I deleted my copies because I was under the impression you were all set.

It looks like you change some css and caused the images to move around????

JFlores
05-08-2012, 05:49 PM
JFlores,what happened to the files I sent you?

The page had all the images you originally had all in the same place except the annoying margue-lol

the images were in the same place and it looked quite good.

After our last email I deleted my copies because I was under the impression you were all set.

It looks like you change some css and caused the images to move around????

Thank you...is Done...I like how it looks ..
and i put the same image from services to contacts...
thank you.