<a href> instead of <input submit> button

Posted by Idealflip on Stack Overflow See other posts from Stack Overflow or by Idealflip
Published on 2010-05-17T15:25:14Z Indexed on 2010/05/17 15:30 UTC
Read the original article Hit count: 230

Filed under:
|
|

Hello all! Quick question

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 instead. The issue is, the value="Add" is very important.

I'm currently making the like this.

<a href="javascript:document.register.submit();">submit</a>

Any suggestions? Issue is, the site is not picking up that this specific was clicked, and therefore won't run my php code.

© Stack Overflow or respective owner

Related posts about php

Related posts about html