Going crazy over Contact form creation! Please Help!

06-06-09, 06:19 PM
|
|
Newbie Coder
|
|
Join Date: Jun 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
Going crazy over Contact form creation! Please Help!
I don't know much about coding, i usually use a program to build my web pages.
I tried some Form Generators/Creators to build a simple form with fields that i set up,
and none of them worked like they should.
I don't want my website to be linked to another server where my Form is located on.
I want to be able to design it like the rest of my website, and not on a different page, and to be able to send the form to a few different email addresses in one click and set up the fields myself.
Is that too complicated?
Is there a way for someone who isn't so good with coding can do this?
I need it for 3 of my websites, and im going crazy over this!
Thanks alot for all the helpers.
Roi.
|

06-07-09, 04:47 PM
|
 |
Aspiring Coder
|
|
Join Date: Oct 2003
Posts: 510
Thanks: 1
Thanked 1 Time in 1 Post
|
|
What you want to do is possible, but perhaps if the previous forms you tried don't work, then either you've set them up wrong, or you try getting support from the sites that offers them.
|

06-10-09, 04:27 PM
|
|
Wannabe Coder
|
|
Join Date: Jun 2008
Posts: 116
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Well from what I could gather from your question is you want a simple form well the most simple I can show it to you is a contact form the easiest way to do this would be in PHP so thats what I did for you, however this small script doesn't have any validation in so they could send blank emails but this is just something i threw together in a minute or two
PM if you need any assistance
|

06-13-09, 05:07 PM
|
|
Newbie Coder
|
|
Join Date: Jun 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks man, but it doesnt work.
It doesn't send the email.
Do you know how can i add a redirect link?
Is it possible to send the form to a few different email addresses at the same time?
and one last thing, is it possible to make the email address in the code invisible somehow (in case the user wants to see the source).
Thanks man, you are helping alot!
|

06-13-09, 10:35 PM
|
|
Aspiring Coder
|
|
Join Date: Mar 2009
Location: North Carolina, USA
Posts: 516
Thanks: 5
Thanked 47 Times in 44 Posts
|
|
You need to name your contact page with a .php extenstion, not a .html
the PHP code will not be visible to the browser at all. It will just send the mail, if a sendMail server is set up(it should be).
I'll expand it a bit for you.
file name: contact.php
|

06-14-09, 10:40 AM
|
|
Newbie Coder
|
|
Join Date: Jun 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I did all you said except for the sendmail server.
How do i set this thing?
|

06-14-09, 03:13 PM
|
|
Aspiring Coder
|
|
Join Date: Mar 2009
Location: North Carolina, USA
Posts: 516
Thanks: 5
Thanked 47 Times in 44 Posts
|
|
The sendmail server should be set up by your hosting company. The script should work as stated if you make sure that the page is named with a .php instead of a .html . If the mail server is not set up, the page will tell you as soon as you try to run the mail() function. FATAL ERROR: will be displayed on the screen.
IF you need the sendmail server, Your hosting company will have to set it up for you.
|

06-15-09, 03:22 AM
|
|
Wannabe Coder
|
|
Join Date: Jun 2008
Posts: 116
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
Thanks JCBones for expanding on my script I've not been able to check the site for a few days, but roig like JC said you need to have the pages as PHP not HTML, if the server isn't set up you will get an error when you try use the form.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|