escaped characters in script

A multipurpose module, plugin and component

escaped characters in script

New postby djtrotman » Thu Jun 16, 2011 4:54 pm

Using this code to collect info and send an email but escaped character using jumi component ends up as n in email instead of creating a new line.

script

$body =_SURNAME.":".$_POST['surname']."\n";
$body .=_FIRSTNAME.":".$_POST['firstname']."\n";
$body .=_DOB.":".$_POST['dob']."\n";
$body.=_ADDRESS.":".$_POST['address']."\n";
$body.=_SUBURB.":".$_POST['suburb']."\n";
$body.=_PCODE.":".$_POST['pcode']."\n";
$body .=_HPHONE.":".$_POST['hphone']."\n";
$body .=_MOBILE.":".$_POST['mobile']."\n";
$body.=_EMAIL.":".$_POST['email']."\n";
$body.=_BCARD1.":".$_POST['bluecardno']."\n";
$body.=_BCARD2.":".$_POST['bluecardexp']."\n";
$body.=_ACCRED.":".$_POST['accredexp']."\n";
$body.=_PHOTO.":".$photo."\n\n";
$body.=_TWOYEARS.":".$_POST['twoyears']."\n";
$body.=_CLUB.":".$_POST['club']."\n";
$body.=_GRADE.":".$_POST['grade']."\n";

Good out put if I run php file direct
Tentitive Nomination:
Club:devils
Grade:a1
Under 15:Y,Official:Y,Player:
Coach:Y,Asst. Coach:Y,Trainee. Coach:
Scorer:,Manager:
White Team:Y,Red Team:Y,Selector:
Position 1:,Position 2:
History:

code as script in jumi component gives me-
Tentitive Nomination:nClub:devilsnGrade:a1nUnder
15:Y,Official:Y,Player:nCoach:Y,Asst.
Coach:Y,Trainee. Coach:nScorer:,Manager:nWhite Team:,Red Team:,Selector:nPosition 1:,Position 2:nHistory:nn
djtrotman
 
Posts: 1
Joined: Thu Jun 16, 2011 4:47 pm

Return to Jumi

Who is online

Users browsing this forum: No registered users and 3 guests

cron