Hello all:
I am trying to pass a multiple line variable to another page.
I am assigning the variable in javascript like so:
var description1=<? echo "\"" . "Order No: " . $quoteno . "\r\n" . "Desc: " . $bcfg . "\r\n" . "Insul: " . $instype1 . "\r\n" . "Doors Incld: " . $dooropt1 . "\r\n" . "Mfgr: " . $doorman1 . "\""; ?>;
I then propogate a form value with this variable using the following method in javascript.
document.PURCHASE.DESCRIPTION.value=description1a;
The form then passes the variable the convential way:
<FORM ACTION="agreement.php" METHOD="POST">
I am getting a "unterminated string constant" error because of
the carriage returns $ newlines I have in the string.
It functions fine without them....any ideas?
I will eventually be passing this variable to an online payment
processing form, which is beyond my control from there.
Thanks