1 Reply Latest reply on Feb 24, 2010 7:56 AM by nmbnmb

    php multiple varaibles

    cjallen1

      hello,

       

      I would like to send an email from a html form, i have the following code, but want to send all 4 variables in the email ?

       

      <?php

        $name = $_REQUEST['name'] ;

        $gc = $_REQUEST['gc'] ;

        $email = $_REQUEST['email'] ;

        $message = $_REQUEST['message'] ;

       

        mail( "chris.allen@retaildigitalnetworks.tv", "Feedback Form Results",

          $message,  "From: $email" );

        header( "Location: http://www.retaildigitalnetworks.tv/websites/GTV_USA/thanks.html" );

      ?>

       

      I have tried

       

      <?php

        $name = $_REQUEST['name'] ;

        $gc = $_REQUEST['gc'] ;

        $email = $_REQUEST['email'] ;

        $message = $_REQUEST['message'] ;

       

        mail( "chris.allen@retaildigitalnetworks.tv", "Feedback Form Results",

          $message, $name, $gc  "From: $email" );

        header( "Location: http://www.retaildigitalnetworks.tv/websites/GTV_USA/thanks.html" );

      ?>

       

      but it doesnt work ?

       

      Does anyone have any suggestions ?

       

      C