I need a php script that can send information from a page I have to my email address?

The form on the page is called support and has the following text boxes on it labeled as:

name
email
telno
spec
problem

Can anyone help me put together a script to send the text from these fields to my email address?

Cheers

Studentmonster

    if you scrollup to the top of this page, look over to the right, theres a decent sized button named "SEARCH", click on it and type a word or 2 describing what u want to find out and it will be your best friend and tell you everything you want to know plus more.

    later...

    p.s. if that fails, which i dont think it will, google is your second best friend, he operates the same way, tell him what you wanna know, he will pass his knowledge to you plus more.

      You can also use the PHP manual, which is quite helpful - try the PHP function [man]mail()[/man].

      -Elizabeth

        Here you go. Had one open on in DW when I was reading...

        Set your form action to

        <? PHP_SELF ?>

        and use the post method...

        if ($_POST['Submit'] == 'Submit Doc') { 
         ob_start();
        
        $name = $_POST['name'];  
        $email = $_POST['email']; $telno = $_POST['telno']; $spec = $_POST['spec']; $problem = $_POST['problem']; $subject = "whatever you want the subject to be"; mail("youremail", "$subject", "name = $name, email = $email, telno = $telno, spec = $spec problem, = $problem, "); ob_end_flush(); }

        Output buffer (the ob stuff) is in there in case you want to throw in a message or redirect to another page...learn the mail() function. It is very powerful and fairly easy to use.

          6 days later

          You can use phpformmail to process any forms, however many fields and send them to an email address. It is easy to set up and fairly configurable to add features if you wan't. The docs are clear.
          It is the php version of the cgi formail which is used by loads of sites.

          Download from
          http://www.boaddrink.com/projects/phpformmail/

          andy

            Write a Reply...