View Full Version : Can somone help me with a php e-mail form
11-21-2006, 06:53 PM
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:
and then a button that sends the e-mail
11-21-2006, 08:42 PM
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:
If you still have trouble, get back to us.
11-21-2006, 09:32 PM
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
11-22-2006, 01:58 AM
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.
11-22-2006, 05:24 AM
it should go to firstname.lastname@example.org
11-22-2006, 05:33 AM
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.
11-22-2006, 05:49 AM
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
11-22-2006, 05:50 AM
i know you are all very busy but all i ask is for help, I HAVE TRIED!
11-22-2006, 04:56 PM
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.
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 ...
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.