473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Php mail form

I've been delving into php for the past two months, and gotten pretty
good at writing variables and such noonsense.

I was looking to make a mailing form for my website, instead of using
the crappy mailto:is***@ophp.com stuff.

Anyone have any ideas as to where I might find this?
I'm looking more for something that is as beginner as possible, so that
I may customize it as I become more accustomed to the language.

Sep 14 '05 #1
2 1644
th**********@gmail.com wrote:
I've been delving into php for the past two months, and gotten pretty
good at writing variables and such noonsense.

I was looking to make a mailing form for my website, instead of using
the crappy mailto:is***@ophp.com stuff.

Anyone have any ideas as to where I might find this?
I'm looking more for something that is as beginner as possible, so that
I may customize it as I become more accustomed to the language.


Hi,

www.php.net is your friend.
go to there and search for mail.

Regards,
Erwin Moller
Sep 14 '05 #2
th**********@gmail.com wrote:
I've been delving into php for the past two months, and gotten pretty
good at writing variables and such noonsense.

I was looking to make a mailing form for my website, instead of using
the crappy mailto:is***@ophp.com stuff.

Anyone have any ideas as to where I might find this?
I'm looking more for something that is as beginner as possible, so that
I may customize it as I become more accustomed to the language.


Hey,

I can understand that the php site is a little
hard to understand to newbies. So a sat down a
wrote this script for you, just to prove how easy
it is. I googled, but all the tutorials looked
real hard, so I thought easier to learn the easier
way.

Have a play with this and let us know how you go.

<html>
<head>
<title>Send Me An Email</title>
<head>
<body>
<?php
if (empty($_POST['submit'])) {

echo "<H3>Send Mail</H3>\n";

echo "Fill in the Form and it will send you an
email.<br>\n";
echo "<form method=post
action='".$_SERVER['PHP_SELF']."'>\n";
echo "Subject: <input type='text'
name='subject'><BR>\n";
echo "Message: <br><textarea name='message'
rows='5' cols='20'>Enter your message
here.</textarea><br>";
echo "<center><input type='submit' name='submit'
value='Send'></center></form>";

}ELSE{

// format and send email.
$to = "you@yourisp";
$subject = $_POST['subject'];
$message = $_POST['message'];

mail ($to, $subject, $message);

echo "Mail Sent!";
}
?>
</body>
</html>
Sep 14 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: pee2pee | last post by:
Hi, I have below code: <html> <head> <title>Contacting Worldpay, Please wait.......</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body...
3
by: Mark Michel | last post by:
Hi. I have made an html form which I would like to send by e-mail. When the recipient receives the e-mail form, I would like them to be able to fill it out and click the Submit button which will...
16
by: SamMan | last post by:
May be a bit off-topic... When bots scan the web for e-mail address to use for spam, do they look at what the browser is displaying, or scan through the underlying HTML markup for e-mail...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
7
by: GeorgeAtkins | last post by:
I want to create a web-based form or page that consists of a series of formatted questions and answers. The form will resemble an existing paper form. When the form is filled in, I want the user to...
9
by: shror | last post by:
hi every body, i have a problem which is when i was checking my mail() form it work fine but the problem is that the form configuration is not set correctly, in details: the from var is not...
1
by: vinodkus | last post by:
Problem 1I m writing a mail program in asp my first page is mail.asp where I subitting address, subject, body and second page is send_mail.asp Contents of Page mail.asp <html> <head> <meta...
2
by: prasenjit2007 | last post by:
Hello, can u help me sending Email with attachments using the Class phpMailer. On the website I have a link to an html form in which I input the parameters with the names 1)from(textbox name)...
3
uranuskid
by: uranuskid | last post by:
Hey folks, I was going to include a contact form on my website. Well, in the first place that seemed an easy thing to do with a form that prompts a PHP file validating the input vaiables and using...
5
by: Henry Stock | last post by:
My ISP provides this sample for an ASP.NET capable email form. If you have any idea about how to do the following, I would greatly appreciate your help. I have a few alterations that I would...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.