Jump to content

[SOLVED] unterminated string literal


The Little Guy

Recommended Posts

I am trying to do a multiline string, like the following:

		opt = "<h2 class=\"red\">Password</h2>\
	<p>\
		Your password is your secret code that allows you to log into your account,\
		this will be accompanied by your email address.\
	</p>\
	<p>\
		The password MUST be:<br />\ 
		no less than 6 characters<br />\
		no more than 10 characters.<br />\
		must have at least 1 number and one alpha character\
	</p>";

 

The problem I am getting is with this section:

			The password MUST be:<br />\ 
		no less than 6 characters<br />\
		no more than 10 characters.<br />\
		must have at least 1 number and one alpha character\
	</p>";

 

I am getting the following error, but I don't know what it means:

Error: unterminated string literal

Source File: http://www.dudeel.com/incl/js/index.js

Line: 33, Column: 8

Source Code:

  The password MUST be:<br />\ 

 

FF's Error Console, has an arrow pointing between the "a" and the "s" in "password".

What do I need to do to fix this??

Link to comment
https://forums.phpfreaks.com/topic/166106-solved-unterminated-string-literal/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.