SA-MP Forums Archive
Error: Missing parameters. in mailer.php - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error: Missing parameters. in mailer.php (/showthread.php?tid=511960)



Error: Missing parameters. in mailer.php - Xeinss - 08.05.2014

in include mailer in the php iget this error
Error: Missing parameters.


Re: Error: Missing parameters. in mailer.php - iZN - 08.05.2014

So should we guess what's mailer.php? right?


Re: Error: Missing parameters. in mailer.php - Xeinss - 08.05.2014

Quote:
Originally Posted by iZN
Посмотреть сообщение
So should we guess what's mailer.php? right?
PHP код:
<?php
    ini_set
'html_errors'false );
    
    if ( empty( 
$_POST't' ] ) || empty( $_POST'f' ] ) || empty( $_POST'n' ] ) || empty( $_POST's' ] ) || empty( $_POST'm' ] ) )
        die( 
'Error: Missing parameters.' );
    
    
mail(
        
$_POST't' ],
        
utf8_encode$_POST's' ] ),
        
$_POST'm' ],
        
implode(
            
"\r\n",
            array
            (
                
'From: "' addslashes$_POST'f' ] ) . "\" <{$_POST'n' ]}>",
                
"Reply-To: {$_POST['f']}",
                
"X-Mailer: PHP/" phpversion( ),
            )
        )
    );
?>



Re: Error: Missing parameters. in mailer.php - Roel - 08.05.2014

Well you didnt fill in all requested fields, show me the script that includes the mail form.