title: Click button is working on one site but its not working on other site
body: <p>I have a script with me used for manual surfing of sites.
  it works like this.
  A link is shortened using any URL shortener website. and both original and shortened links are saved in db.
  User clicks the visit button, a url shortened link is opened, then after pressing the skip add button user has to copy/paste the shown url in the text box and he presses confirm.
  IF the enteries match in the db, then i will credit the user.</p>
  
  <p>The problem that I am facing is, it works fine for some sites and does not work on other sites. using the same script.All the sites have same coding structure. [I install it on Paid to click websites ]</p>
  
  <p>The Problem:<br>
  I click visit button [ it works fine ]<br>
  after i copy/paste and press confirm button [ it does not work ]<br></p>
  
  <p>I keep on pressing the confirm button, it simple does not do any thing.</p>
  
  <p>the same code works totally fine with some sites.
  Below is the code that i am using ...</p>
  
  <pre><code> &lt;?
  
      $sql2=$Db1-&gt;query("SELECT * FROM tablename");
      while($temp=$Db1-&gt;fetch_array($sql2)) {
  
          {
          $linksHTML .= '&lt;div class="smartbox" id="'.$temp['id'].'" style="height: 300px; width: 270px; background: #F3F4F4; border: 5px solid #36A6CB; border-radius: 12px; float: left; position: relative; padding: 6px; margin: 8px 8px 0 0;"&gt;
          &lt;center&gt;
          &lt;div class="title"&gt; &lt;a style="color:blue;"&gt; &lt;b&gt; '.$temp['title'].' &lt;/b&gt;&lt;/a&gt; [ Click Visit, Press Skip Add,Paste URL below and press confirm ] &lt;/div&gt;
          &lt;div&gt;&lt;font color="green"&gt;Cash: &lt;b&gt;$'.$temp['credits'].'&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;
          &lt;div class="clearer"&gt;&amp;nbsp;&lt;/div&gt;
  
          &lt;div&gt;&lt;input class="button" value="Visit" style="background: #409940; border-radius: 10px;" type="button" onclick="window.open(\''.$temp['shorten'].'\');"&gt;&lt;/div&gt;
  
          &lt;br&gt;
  
          &lt;form&gt;
          &lt;b&gt;Enter URL :&lt;/b&gt;
          &lt;input name="link_'.$temp['id'].'" id="link_'.$temp['id'].'" size="16" maxlength="150" value="http://" type="text"&gt;
          &lt;br&gt;&lt;br&gt;
          &lt;input id="btn_'.$temp['id'].'" value="Confirm" style="background: #409940; border-radius: 10px; color: white;" type="button" onclick="validaLink(\''.$temp['id'].'\');"&gt;
          &lt;/form&gt;
  
          &lt;br&gt;
          &lt;/center&gt;
      &lt;/div&gt;';
          }
      } 
  } else { echo "No Links "; }
  $includes[content]='&lt;div id="msg_link" style="text-align:center"&gt;&lt;/div&gt;
  &lt;div id="tbl" style="width: 850px; margin: 0 auto"&gt;
      '.$linksHTML.'
  &lt;/div&gt;
  &lt;div style="clear: both"&gt;&lt;/div&gt;
  &lt;script&gt;
  function validaLink(id)
  {
      $.post(\'checkLink.php?'.$url_variables.'\', {id: id, enlace: $(\'#link_\'+id).val(), sid: \''.$_SESSION['sessid'].'\', sid2: \''.$_SESSION['sessid2'].'\', siduid: \''.$_SESSION['sessiduid'].'\'}, function(data){
          if( data == "ok" ) {
              $(\'#\'+id).fadeOut();
              $(\'#msg_link\').html(\'We added the credits to your account.\');
          } else {
              alert(data);
          }
      });
  } 
  &lt;/script&gt;
  ';
  
  ?&gt;
  </code></pre>
  
  <p>This script is not developed by me .. I don't have contact with the original developer. </p>
  
  <p>Kindly support</p>