I have an error in my PHP on this line:
var strRooms = <?=$js_var?>;
It is saying that this has an invalid markup, what does this mean?
You can look at the application here: application
Now if you type in nothing in the textbox, then it doesn't display a message saying "Please Enter in a Room Number", if you type in a invalid room number then it doesn't show a message stating "This Room is Invalid". Why is it not working?
I know the code doesn't work in jsfiddle but I have included my code in the jsfiddle so that you can see the whole code and the way it is laid out. jsfiddle
So how can this error be fixed and how can the JavaScript validation message appear as they should do?