|
Posted by Johannes Wienke on 02/11/06 02:04
Hi.
Am 11.02.2006 00:47 schrieb PerlBoy:
> Warning: mail() expects at most 5 parameters, 10 given in
> /home/content/i/n/f/infowebpages/html/maxipoint/sendmail.php on line 32
>
> Warning: Cannot modify header information - headers already sent by (output
> started at /home/content/i/n/f/infowebpages/html/maxipoint/sendmail.php:32)
> in /home/content/i/n/f/infowebpages/html/maxipoint/sendmail.php on line 33
>
> what is wrong?
> <?
> $Domain_name = $_REQUEST['Domain_name'] ;
> $Old_department = $_REQUEST['Old_department'] ;
> $Old_webspace = $_REQUEST['Old_webspace'] ;
> $New_account = $_REQUEST['New_account'] ;
> $Payments = $_REQUEST['Payments'] ;
> $Note = $_REQUEST['Note'] ;
> $email = $_REQUEST['email'] ;
>
>
> if (!isset($_REQUEST['email'])) {
> header( "Location: http://www.doamain.com/index.html" );
> }
> elseif (empty($email) || empty($Domain_name) || empty($Old_department) ||
> empty($Old_webspace) || empty($New_account) || empty($Payments)) {
> ?>
>
> <html>
> <head><title>Error</title></head>
> <body>
> <h1>Error</h1>
> <p>
> Oops, it appears you forgot to enter required field(s).
> Please press the BACK button in your browser and try again.
> </p>
> </body>
> </html>
>
> <?
> }
> else {
> mail( "mil@hotmail.com", "Datacenter Transfer Form",
> $Domain_name, $Old_department, $Old_webspace, $New_account,
> $Payments, $Note, $email, "From: $email" );
> header( "Location: http://www.domain.com/thankyou.html" );
> }
> ?>
Take a look at the manual-page [1]. You have to connect your user-input
to one long string using "." : $foo.$bar. What you do is using every
part of the user-input as an argument for the mail-function.
[1] http://de.php.net/manual/de/function.mail.php
Navigation:
[Reply to this message]
|