Simple Javascript redirection works with localhost testing and not with uploaded site
<p>I have been working on a prototype site using a mamp server and the below redirection works fine but when I use it with my uploaded site its coming up with un recognised url. It is probably me being daft after too many hours of coding.</p>

<p>It is all stored in a folder as follows creativetreeAlpha/file here does it need this? The data (variable which is encoded) is coming through fine.</p>

<pre><code> //new code does not recognise url                                                        
 window.location="http://projectboard.php?emailid="+data;

 //old MAMP code works in my server
  window.location="http://localhost/creativetreelatest/projectboard.php?emailid="+data;
</code></pre>
