title: Is this php code safe and how to hide the javascript link?
body: <p>People will be able to see the javascript confirm link in the status bar of the browse. So, is that code below secure enough and how to hide the javascript to DONT show this: 
  <code>javascript:a = confirm('Are you sure you want to purchase this reward?'); if (a) { location.href='./?page=vote&amp;act=rewards&amp;id=8'} else void(0)</code></p>
  
  <p><code>Script:</code></p>
  
  <pre><code>if ($_SESSION['nVotePoints'] &gt;= $data['nCost']) {
              $url = './?page=vote&amp;act=rewards&amp;id=' . $data['id'];
              $confirm = "javascript:a = confirm('Are you sure you want to use purchase this reward?'); if (a) { location.href='{$url}'} else void(0)";
            $data['URL'] = $confirm;
          }
          else
            $data['URL'] = 'javascript: alert(\'' . stripslashes(Template::GetLangVar('VOTE_NEED_VP')) . '\');';
  
  $column[$i++] = Template::Load('vote-reward-column', $data);
  </code></pre>
  
  <p>Kind Regards.</p>