I originally had a submit button.
<input class="submit" type="submit" class="input" value="Add" name="command" />
but now I would like to use a <a href> instead. The issue is, the value="Add" is very important.
I’m currently making the <a href> like this.
<a href="javascript:document.register.submit();">submit</a>
Any suggestions? Issue is, the site is not picking up that this specific <a href> was clicked, and therefore won’t run my php code.
First off I highly recommend jquery. It makes a world of difference when working with javascript and simplifies a number of issues especially cross different browsers.
What I suggest is that you create a hidden input to set the value with.
I didn’t test my code but it should be close enough to see how it works. Again check out jquery it will make dealing with javascript a lot easier!