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> '; Link to comment https://forums.phpfreaks.com/topic/255718-not-working/ 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> '; Link to comment https://forums.phpfreaks.com/topic/255718-not-working/#findComment-1310887 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> '; Link to comment https://forums.phpfreaks.com/topic/255718-not-working/#findComment-1310888 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. Link to comment https://forums.phpfreaks.com/topic/255718-not-working/#findComment-1310890 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? Link to comment https://forums.phpfreaks.com/topic/255718-not-working/#findComment-1310891 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> '; Link to comment https://forums.phpfreaks.com/topic/255718-not-working/#findComment-1310894 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.