hello every one just i need favor..

i am having this idea in my head ..is it possbile ?

when the user submit the data it stored in PDF file and that file gose in to my email..???
thanks in advance...

I use ZEND framework to create the PDF. It is so simple and you can create your own template. Just look up Zend PDF on the net there is loads of help.

This will then either write it to a directory if you want or you can render it onto the screen.

As you want to email it to yourself use the Zend PDF to write to a directory then use this email code.

$to = "yourself."<".$youremailaddress.">";
       $subject = "PDF data";
        $from = "The User <user@email.com>";  
        $fileatt = "localdirectorystoringPDFs/";
		$fileatt .= $filename;
        $fileatttype = "application/pdf"; 
		$fileattname .= $filename;
        $headers = "From: $from";
        $file = fopen( $fileatt, 'rb' ); 
        $data = fread( $file, filesize( $fileatt ) ); 
        fclose( $file );

        $semi_rand = md5( time() ); 
        $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; 
        $headers .= "\nMIME-Version: 1.0\n" . 
                    "Content-Type: multipart/mixed;\n" . 
                    " boundary=\"{$mime_boundary}\"";
        $message = "This is a multi-part message in MIME format.\n\n" . 
                "--{$mime_boundary}\n" . 
                "Content-Type: text/plain; charset=\"iso-8859-1\"\n" . 
                "Content-Transfer-Encoding: 7bit\n\n" . 
                $messageletter . "\n\n";
        $data = chunk_split( base64_encode( $data ) );
        $message .= "--{$mime_boundary}\n" . 
                 "Content-Type: {$fileatttype};\n" . 
                 " name=\"{$fileattname}\"\n" . 
                 "Content-Disposition: attachment;\n" . 
                 " filename=\"{$fileattname}\"\n" . 
                 "Content-Transfer-Encoding: base64\n\n" . 
                 $data . "\n\n" . 

        if( mail( $to, $subject, $message, $headers ) ) {
            echo "<p>The email was sent.</p>"; 
        else { 
            echo "<p>There was an error sending the mail.</p>";