Author Topic: How to make Form Information go to your e-mail.  (Read 2708 times)

0 Members and 1 Guest are viewing this topic.

Offline !!!!!Topic starter

  • Enthusiast
  • Posts: 68
    • View Profile
How to make Form Information go to your e-mail.
« on: December 10, 2006, 07:42:49 PM »
I would like to know how you make information that users enter on a form go to your e-mail, or to post it on another page (preferrably onto another page). Except, I would not want the users to be able to see where all the information is stored. Also, I would like to know how to make it so that when people type in a Password their text appears as *'s. And also on the page that they go to when they click Submit. And finally, how to make the information that shows on the page that they go to when they hit Submit a different color. (how to make their username orange) Thanks!
« Last Edit: December 10, 2006, 07:49:56 PM by !!!!! »

Offline drifter

  • Enthusiast
  • Posts: 212
  • CoreLevel
    • View Profile
    • CoreLevel Real Estate Web Sites
Re: How to make Form Information go to your e-mail.
« Reply #1 on: December 10, 2006, 07:44:39 PM »
search phpclasses.org, or google - there are a million form mailers available.

Offline !!!!!Topic starter

  • Enthusiast
  • Posts: 68
    • View Profile
Re: How to make Form Information go to your e-mail.
« Reply #2 on: December 10, 2006, 07:47:15 PM »
search phpclasses.org, or google - there are a million form mailers available.
I'm actually looking to see if there is some code I can add to do this...

Offline thorpe

  • Administrator
  • 'Mind Boggling!'
  • *
  • Posts: 29,255
    • View Profile
Re: How to make Form Information go to your e-mail.
« Reply #3 on: December 10, 2006, 07:49:46 PM »
How much php do you know? This is a pretty broad but straight forward question. I suggest you learn php, then you can likely answer this question yourself.

A good place to start might be here.

Offline !!!!!Topic starter

  • Enthusiast
  • Posts: 68
    • View Profile
Re: How to make Form Information go to your e-mail.
« Reply #4 on: December 10, 2006, 07:50:53 PM »
How much php do you know? This is a pretty broad but straight forward question. I suggest you learn php, then you can likely answer this question yourself.

A good place to start might be here.
doesn't really matter does it... this is the PHP help forum, and your not helping - i want a specific question answered

Offline thorpe

  • Administrator
  • 'Mind Boggling!'
  • *
  • Posts: 29,255
    • View Profile
Re: How to make Form Information go to your e-mail.
« Reply #5 on: December 10, 2006, 07:52:00 PM »
Post your code then. Were not here to write tutorials. What have you got?

Offline doni49

  • Devotee
  • Posts: 531
    • View Profile
Re: How to make Form Information go to your e-mail.
« Reply #6 on: December 10, 2006, 07:54:55 PM »
doesn't really matter does it... this is the PHP help forum, and your not helping - i want a specific question answered

Actually, unless you're looking for someone to write it for you, he gave you the best possible help there is.  The ONLY way to learn PHP is to actually learn it.  If you're looking for someone to write it, then might I suggest hiring a web designer?  With the attitude of the last message, I don't see you getting anyone to write it for free.
Don

Offline drifter

  • Enthusiast
  • Posts: 212
  • CoreLevel
    • View Profile
    • CoreLevel Real Estate Web Sites
Re: How to make Form Information go to your e-mail.
« Reply #7 on: December 10, 2006, 07:55:57 PM »
I'm actually looking to see if there is some code I can add to do this...

That is what phpclasses.org is - classes (... code) you can drop in to do this

Offline doni49

  • Devotee
  • Posts: 531
    • View Profile
Re: How to make Form Information go to your e-mail.
« Reply #8 on: December 10, 2006, 07:57:31 PM »
P.S. I don't claim to be a PHP expert.  Nor do I ever expect to be.  But I've learned quite a bit by reading the tutorials and seeing what I could come up with.  Then as issues have come up, I've asked for help and recieved an immense amount of help from many people here--Thorpe among them.
Don

Offline !!!!!Topic starter

  • Enthusiast
  • Posts: 68
    • View Profile
Re: How to make Form Information go to your e-mail.
« Reply #9 on: December 10, 2006, 08:01:12 PM »
Okay, sorry. I just got a little frustrated. My friend was just cursing at me for something he thinks I did yesterday... Still shouldn't have did that.

I will check out that site and see what I can find, but if at all possible, It would be very helpful if somebody could write me a little code on the first question. Thanks, and sorry again.

Offline doni49

  • Devotee
  • Posts: 531
    • View Profile
Re: How to make Form Information go to your e-mail.
« Reply #10 on: December 10, 2006, 08:03:26 PM »
Okay, sorry. I just got a little frustrated. My friend was just cursing at me for something he thinks I did yesterday... Still shouldn't have did that.

Everybody has a bad day--I've been known to go off a tad bit in the past myself.
Don

Offline thorpe

  • Administrator
  • 'Mind Boggling!'
  • *
  • Posts: 29,255
    • View Profile
Re: How to make Form Information go to your e-mail.
« Reply #11 on: December 10, 2006, 08:04:03 PM »
Quote
It would be very helpful if somebody could write me a little code on the first question.

Your first question is actually the only one which is php related, the other are basic html which you will likely need to learn before php.

You might want to take a look at the manual entry for the mail function. Its hard to tell what you want really, your subject says one thing, then the content of your question another.

Maybe a read of the link in my signiture would be helpfull aswell.

Quote
Everybody has a bad day

And yes. Im having a bad day.
« Last Edit: December 10, 2006, 08:05:49 PM by thorpe »

Offline drifter

  • Enthusiast
  • Posts: 212
  • CoreLevel
    • View Profile
    • CoreLevel Real Estate Web Sites
Re: How to make Form Information go to your e-mail.
« Reply #12 on: December 10, 2006, 08:08:56 PM »
Code: [Select]
<?php
$to      
'nobody@example.com';
$subject 'the subject';

foreach(
$_POST AS $key=>$value){
$message .= $key " - " $value "\r\n";
}
$headers 'From: webmaster@example.com' "\r\n" .
   
'Reply-To: webmaster@example.com' "\r\n" .
   
'X-Mailer: PHP/' phpversion();

mail($to$subject$message$headers);
?>


This will email your message - I would watch what you do with something this basic because you may open your self to mail() spam on your server and you would not even know it. So you will want to read on that or get a good mailer.

Offline !!!!!Topic starter

  • Enthusiast
  • Posts: 68
    • View Profile
Re: How to make Form Information go to your e-mail.
« Reply #13 on: December 10, 2006, 08:15:14 PM »
Code: [Select]
<?php
$to      
'nobody@example.com';
$subject 'the subject';

foreach(
$_POST AS $key=>$value){
$message .= $key " - " $value "\r\n";
}
$headers 'From: webmaster@example.com' "\r\n" .
   
'Reply-To: webmaster@example.com' "\r\n" .
   
'X-Mailer: PHP/' phpversion();

mail($to$subject$message$headers);
?>


This will email your message - I would watch what you do with something this basic because you may open your self to mail() spam on your server and you would not even know it. So you will want to read on that or get a good mailer.
Thanks drifter... EDITED
« Last Edit: December 10, 2006, 08:23:03 PM by !!!!! »