Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-21-2006, 06:53 PM   PM User | #1
AJW06
Regular Coder

 
Join Date: Nov 2006
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts
AJW06 is an unknown quantity at this point
Can somone help me with a php e-mail form

Hi i have been writing websites since august using HTML and CSS but i would like to put a e-mail form on my site.

if any of you have any spare time could you write me a form that will e-mail me. it should have the following fields:
Name
Subject
E-mail
Comments

and then a button that sends the e-mail
AJW06 is offline   Reply With Quote
Old 11-21-2006, 08:42 PM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,055
Thanks: 8
Thanked 1,032 Times in 1,023 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
This is a very common topic and yes, PHP is easy ..
assuming your webhost allows PHP and the PHP mail() is enabled.

See a search on this forum to find many discussions:
http://www.codingforums.com/search.php?searchid=795638

If you still have trouble, get back to us.
mlseim is offline   Reply With Quote
Old 11-21-2006, 09:32 PM   PM User | #3
AJW06
Regular Coder

 
Join Date: Nov 2006
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts
AJW06 is an unknown quantity at this point
The link tou gave me didn't work can somone please send me a source code sorry to sound rude but i am greatful for your help
AJW06 is offline   Reply With Quote
Old 11-22-2006, 01:58 AM   PM User | #4
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,055
Thanks: 8
Thanked 1,032 Times in 1,023 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
AJ, sorry about that ...
I didn't realize I couldn't link like that.

Do you already have a form?
(not the PHP email part, but the form itself)?

If you have a form on a webpage, give us a link.
We need to see which variables you are using
in order to give you a PHP script.
mlseim is offline   Reply With Quote
Old 11-22-2006, 05:24 AM   PM User | #5
AJW06
Regular Coder

 
Join Date: Nov 2006
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts
AJW06 is an unknown quantity at this point
Name
E-mail
Subject
Comment

it should go to ashwh1t@aol.com
AJW06 is offline   Reply With Quote
Old 11-22-2006, 05:33 AM   PM User | #6
Taylor_1978
Regular Coder

 
Join Date: Jun 2003
Location: Australia
Posts: 528
Thanks: 8
Thanked 8 Times in 8 Posts
Taylor_1978 is on a distinguished road
So basically what you're asking is for someone to do the work for you.

There are two ways to do this. Either simply via a person outlook or default mail program (which not everyone has) or via PHP.

You have not answered the original question asked, which is most important as to whether it can be done via PHP. Does your web provider allow PHP?

And have you already created a form and just need the values of the form to be sent to you? Or, like I am thinking - you have done none, reasearched little and require us to do it all for you?

Find that out first about the PHP and then we may be able to help you further.
Taylor_1978 is offline   Reply With Quote
Old 11-22-2006, 05:49 AM   PM User | #7
AJW06
Regular Coder

 
Join Date: Nov 2006
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts
AJW06 is an unknown quantity at this point
i cam to CF for help because i know nothing about php and php has e-mail forms i have tryed google but didn't really understand what they were trying to say, if i know people were going to make a fuss then i must have came to the wrong place

yes it supports php and i obvousily havn't got the form laid out that is why i gave a list of possible fields
AJW06 is offline   Reply With Quote
Old 11-22-2006, 05:50 AM   PM User | #8
AJW06
Regular Coder

 
Join Date: Nov 2006
Posts: 138
Thanks: 0
Thanked 0 Times in 0 Posts
AJW06 is an unknown quantity at this point
i know you are all very busy but all i ask is for help, I HAVE TRIED!
AJW06 is offline   Reply With Quote
Old 11-22-2006, 04:56 PM   PM User | #9
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,055
Thanks: 8
Thanked 1,032 Times in 1,023 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
AJ ....

Let's do this first ...

Use your text editor (notepad) to
copy and paste following text (the PHP script below).

Save it as "test.php" and upload it,
then go to the URL and see if it works.
This is to test if PHP actually works with your webhost.

<?php
$count=1+2;
echo "The count should be three .... -- $count";
?>


When you view the page, you should see:
the count should be three .... -- 3

That tells us that it's working, we can then continue on ...
mlseim is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:50 PM.


Advertisement
Log in to turn off these ads.