Hi all you lovely coders.
i have designed a little it helpdesk system that once a user logs a fault an email is automaticcally sent showing certain feilds.
these are working ok aprt from the main field te user filled in. normal people press return once or twice having completed a line of text to either start a new line or paragraph. this stores /r/n/r to the variable and i cannot get them to remove for the sending of the email, i have been able to for a simple echo but not email
can any of you advice what i must do the variable i wish to sent in the email. heres my email seding code. it is the faulty2 feild which is the problem.
as i said, everything else works fine.
many many thanks in advance.
$to = $email;
$subject = "Your Helpdesk Call Has Been Logged With Call ID: " . $lastid . " " . " Priority: " . $prio;
$body = "Please use the above ID in all correspondence" . "\n" . "\n" . "Problem Detail....." . "\n" . "\n" . $faulty2 . "\n" . "\n" . "This Call has a completion date of: " . $completebymail . "\n" . "\n" . "ThankYou.";
$headers = "From: ithelp@domain.org";
$headers .= "\r\nCc: ithelp@domain.org";
if (mail($to, $subject, $body, $headers)) {
echo("