Will I be able to test this PHP? : <p>So I have 2 websites. One is currently hosted on a domain and one is just local on my computer (viewing it using brackets live preview).</p>

<p>I used the hosted website (#1) to create a mysql database. </p>

<p>Then for my local website (#2) I created a login page and created a index.php document to handle the submission. In the index.php of the local website I told it to connect to the mysql database of the hosted website.</p>

<p>Then when I try to preview the local page and submit it, I get this error</p>

<p><strong>"Cannot GET /POST?name=JohnDoe&amp;password=123"</strong></p>

<p>So I am wondering, since my sql database is hosted online, can I actually test my website locally or not?</p>
