Jump to content

NOT WORKING


Glenskie

Recommended Posts

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

$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

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

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

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.