Twerk Member
![Member Member](https://2img.net/h/i654.photobucket.com/albums/uu265/hoover78/User%20ranks/member.png)
![Twerk](https://2img.net/h/i654.photobucket.com/albums/uu265/hoover78/adds/no_avatar.gif)
Posts : 26 Join date : 2011-04-17
![Submit values using other than <input> Empty](https://2img.net/i/fa/empty.gif) | 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
![Member Member](https://2img.net/h/i654.photobucket.com/albums/uu265/hoover78/User%20ranks/member.png)
![avatar](https://2img.net/h/i654.photobucket.com/albums/uu265/hoover78/adds/no_avatar.gif)
Posts : 17 Join date : 2011-03-09
![Submit values using other than <input> Empty](https://2img.net/i/fa/empty.gif) | 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">
|
|