Is there a way to use POST method for this link:
<a href="login.php?action=new_user" >Register</a>
instead of the GET method that is currently represented?
Or do I have to use a form and button.
Cheers
You either need a form with a button, or a bunch of Javascript to attach a form submission event to the act of clicking on the <a> link. Either way, PHP isn't going to be relevant.
you can do this: <form name='form1' method='POST' action='login.php'> <input type='hidden' name='action' value='new_user'> <a href='#' onClick='document.form1.submit()'>Register</a> </form>