how to send an entire pdf form using PHP
===

Hey I am having some problems with php! I have created this interactive pdf form which is supposed to be filled by the online user and hit the submit button which is supposed to send the entire pdf file. 
here is all the code I am using!! 

    <?php
    $to = "xxx@gmail.com" ;
    $subject = "Online PDF" ;
    
    $message = $_POST [$HTTP_RAW_POST_DATA]; 
    $pdf = fopen ("Project2.pdf" , "w");
    fputs($pdf, $HTTP_RAW_POST_DATA);
    fclose($pdf);
    
    mail ($to, $subject, $message, $from); 

    ?>

