Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2009
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Submit values using other than <input>

    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...

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    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
    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">
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •