Twerk Member
Posts : 26 Join date : 2011-04-17
| Subject: Submit values using other than <input> Wed Jun 29, 2011 8:09 am | |
| A friend of mine is using Visual Studio to do some back end for a project of ours. He's not sure how to use <a> to put values into the database and can only do it using <input type="button>. I'm the front end guy and if I can build buttons using <div><a>submit</a></div> or even images wrapped in <a>img.jpg</a> it would give me more flexibility. Is it possible? If possible can you provide a resource... |
|
Stronger Member
Posts : 17 Join date : 2011-03-09
| Subject: Re: Submit values using other than <input> Wed Jun 29, 2011 8:11 am | |
| - Code:
-
He's not sure how to use <a> to put values into the database and can only do it using <input type="button>
That type of button is not capable to submit a form, by default. You need to use <input type="submit>, instead - Code:
-
if I can build buttons using <div><a>submit</a></div> or even images wrapped in <a>img.jpg</a> it would give me more flexibility.
I don't understand the issues that you face when using an <input> element, though you may also use - Code:
-
<button type="submit">
Or - Code:
-
<input type="image" src="path to an image">
|
|