>if ($REQUEST_METHOD=='POST') {
>  $name = escapeshellcmd($name);
>  $group = escapeshellcmd($group);
>  $to = "[EMAIL PROTECTED]";
>  $from = "FROM: $name, $group";
>  $subject = "The subject of this mail\n\n";
>  $body = "Name: $name\t";
>  $body .= "Group: $group\n";
>  $body .= "\n\n$comments\n\n";
>
>  mail($to,$subject,$body,$from);
>  exit;
>}
>
>Well, I recieve a mail, but the mailcontent is empty.
>The cookie string is written to a hidden field like this:
>
> document.write('<FORM><INPUT TYPE=HIDDEN NAME=\"comments\"
>VALUE=\"'+cookiestr+'\"></FORM>');

Get rid of the JavaScript, and just do something like this:

$body .= implode("\r\n", $_COOKIE);


-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to