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
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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.