would this line of code redirect me to register.php on clicking the button if URL is correct?
<a href="/1/register/register.php"><input type="button" value="Join" id="join_button" ></a>
would this line of code redirect me to register.php on clicking the button if URL is correct?
<a href="/1/register/register.php"><input type="button" value="Join" id="join_button" ></a>
No. Don't use input's inside anchors.
Try using this:
To redirect the user to a page, you can use JavaScript:
function doRedirect(url) {
location.href = url;
return true;
}
<input type="button" value="Go to other page" onclick="doRedirect('http://www.website.com')" />