Hi all,
As promised, here is my other problem. I have the following values stored in a database:
My code to output said values is as follows:
Note that 'document.forms["places_form"].elements["edit_place_address"] is a text area (thus the str_replace... I wanted it to look neat in the text area)
My Javascript Error is as follows:
Once again, I greatly appreciate your assistance!
![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)
![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
Cheers!
Laura
As promised, here is my other problem. I have the following values stored in a database:
Code:
+----+----------------+-------------------------------------------------+
| ID | PLACE_NAME | ADDRESS |
+----+----------------+-------------------------------------------------+
| 9 | Laura\'s Place | Party Central <br>123 Easy Street <br>Suite 220 |
+----+----------------+-------------------------------------------------+
My code to output said values is as follows:
Code:
$address = str_replace("<br>","\n",$address);
$address_block .= 'document.forms["places_form"].elements["edit_place_address"].value = "'.$address.'";';
My Javascript Error is as follows:
Code:
Error: unterminated string literal
Code:document.forms["places_form"].elements["edit_place_address"].value = "Party Central
//the error pointer is pointing at the double Quotation marks immediately before Party Central
Once again, I greatly appreciate your assistance!
![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)
![[cheers] [cheers] [cheers]](/data/assets/smilies/cheers.gif)
Cheers!
Laura