E-Mail form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
irishmike2004
Forum Contributor
Posts: 119
Joined: Mon Nov 15, 2004 3:54 pm
Location: Lawrence, Kansas

E-Mail form

Post by irishmike2004 »

I am moving onward as we develop this site I am working on and I was curious if anyone has ever done some e-mail formatting from an online form and had some good ideas for coding this... instead of doing CGI or Perl for example to make the mail nice.

I know how to do forms, but would need the action part and how we can "parse " the information on the form before mailing it to our address.

Help is really appreciated.

Thanks,
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

can you be more specific?
irishmike2004
Forum Contributor
Posts: 119
Joined: Mon Nov 15, 2004 3:54 pm
Location: Lawrence, Kansas

Post by irishmike2004 »

We will be making a standard e-mail form with subject and message hidden e-mail to address and wanted to make the data from the form look pretty and then send it out. normal output is something like please+send+information... etc

Looking to do something without CGI.
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

are you asking how to send emails w/ php?

can you give an example? im having a hard time understanding what you want...
irishmike2004
Forum Contributor
Posts: 119
Joined: Mon Nov 15, 2004 3:54 pm
Location: Lawrence, Kansas

Post by irishmike2004 »

I am asking how to make a web form send nicely formatted output to an e-mail ... like if I go to a page and pick contact and click on e-mail and then they give a web form that sends the e-mail to them... I have a form, but normally you send these things through some kind of CGI script to get cleaned up then it goes out the mail server... I believe... so yes, I am looking to send e-mail from PHP.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

check out [php_man]mail[/php_man]
irishmike2004
Forum Contributor
Posts: 119
Joined: Mon Nov 15, 2004 3:54 pm
Location: Lawrence, Kansas

Post by irishmike2004 »

Thanks that will help me :-)
djot
Forum Contributor
Posts: 313
Joined: Wed Jan 14, 2004 10:21 am
Location: planet earth
Contact:

Post by djot »

-
normal output is something like please+send+information... etc
If this is what your form sends back, I guess you use method=get, use method=post instead.

Code: Select all

<FORM METHOD="POST" ACTION="script.php">...
djot
-
Post Reply