Glenskie Posted January 25, 2012 Share Posted January 25, 2012 HELP This isnt working , what did i do wrong? else if (isset($_SESSION['idx']) && $logOptions_id == $id) { // If SESSION idx is set, AND it does equal the profile owner's ID $interactionBox = '<br /><br /><div class="interactionLinksDiv"> <a href="#" onclick="return false" onmousedown="javascript:toggleInteractContainers(\'friend_requests\');">Friend Requests</a> </div><br />'; $the_blab_form = ' <textarea id="add-status"class="status" onkeyup="limitText(this,350,'.character-count');detect_url(this.value);" onclick="limitText(this,350,'.character-count');detect_url(this.value);"></textarea><div><input class="button post" type="button" value="Post" id="<?php print $session?>" onClick="add_post(this.id)"/><div class="character-count">350</div> '; Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted January 25, 2012 Share Posted January 25, 2012 $the_blab_form = ' <textarea id="add-status"class="status" onkeyup="limitText(this,350,'.character-count');detect_url(this.value);" onclick="limitText(this,350,'.character-count');detect_url(this.value);"></textarea><div><input class="button post" type="button" value="Post" id="'. $session .'" onClick="add_post(this.id)"/><div class="character-count">350</div> '; Quote Link to comment Share on other sites More sharing options...
Glenskie Posted January 25, 2012 Author Share Posted January 25, 2012 ok well i did that and it still says "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING on line 224" which is this line it shows the error around after .character-count); and all the way till the end $the_blab_form = ' <textarea id="add-status"class="status" onkeyup="limitText(this,350,'.character-count');detect_url(this.value);" onclick="limitText(this,350,'.character-count');detect_url(this.value);"></textarea><div><input class="button post" type="button" value="Post" id="'. $session .'" onClick="add_post(this.id)"/><div class="character-count">350</div> '; Quote Link to comment Share on other sites More sharing options...
nine7ySix Posted January 25, 2012 Share Posted January 25, 2012 There are other single quote syntax errors on that line, and I would also check the variable $session to see if it's right. Quote Link to comment Share on other sites More sharing options...
Glenskie Posted January 25, 2012 Author Share Posted January 25, 2012 How would i change it ? so it will work? Quote Link to comment Share on other sites More sharing options...
nine7ySix Posted January 25, 2012 Share Posted January 25, 2012 How would i change it ? so it will work? Escape the single quotes <?php $the_blab_form = ' <textarea id="add-status"class="status" onkeyup="limitText(this,350,\'.character-count\');detect_url(this.value);" onclick="limitText(this,350,\'.character-count\');detect_url(this.value);"></textarea><div><input class="button post" type="button" value="Post" id="'.$session.'" onClick="add_post(this.id)"/><div class="character-count">350</div> '; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.