Im new to PHP and I can\'t figure out what the rules are for using the echo function. For example, if I need to echo a large block of css/js, do I need to add echo to each line
Your problem is actually caused by:
$('input_6').hint('ex: myname@example.com');
You need to escape the single quotes to be \'
\'
However: Using a Heredoc is a much better idea, as it will be much cleaner overall.