Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6737533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:15:36+00:00 2026-05-26T11:15:36+00:00

I love this article How to create Skype-like buttons using jQuery But the comment

  • 0

I love this article
“How to create Skype-like buttons using jQuery”

But the comment list is already closed so I need your help guys!

How to make this code to a form using submit method?

<a class="button" href="#"> 
<img src="*.png" alt="" />Add to cart</a>

This is the sample of my form where I want the css button to be inserted:

<form action="http://ww6.aitsafe.com/cf/addmulti.cfm" name="mal" method="post">
<input type="hidden" name="userid" value="">
<input type="hidden" name="return" value="">    
<input type="hidden" name="nocart">
<input type="hidden" name="qty1" value="1">
<input type="hidden" name="product1" value="">
<input type="hidden" name="price1" value="150.00">

<input type=submit value="Add to Cart" onclick="alert('Added to cart\n\nThis page will refresh');">

update… yehey! 🙂

Thank You to PCALCAO for the link How best to make a link submit a form

There I found the answer of CHRIS to be very helfpful & now it’s working…

Correct answer:

<a class="button" href="#" onclick="document.mal.submit(); return false;"> 
<img src="*.png" alt="" />Add to cart</a>

🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:15:37+00:00Added an answer on May 26, 2026 at 11:15 am

    I have no idea what you’re trying to do there… but!

    Here it is:
    http://www.w3schools.com/html/html_forms.asp

    Read this, and you’ll learn a bit about forms and submit buttons.

    When you figure the simple html part out, start thinking about the CSS and JQuery.

    -EDIT-
    You should really re-read that article!
    For starters, it’s:

    <a class="button" href="#">
    <img src="button.png" alt="" />Send info</a>
    or <a href="#">cancel</a>
    

    and not:

    <class="button" a href="#"> 
    <img src="*.png" alt="" />Add to cart</a>    
    

    “class” is an attribute of an HTML element, not an element by itself. The element here is “a” (anchor).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I love auto-implemented properties in C# but lately there's been this elephant standing in
I have to preface this with the fact that I love jQuery as a
I'm starting to love Lambda expressions but I'm struggling to pass this wall: public
Possible Duplicate: What’s with the love of dynamic Languages I have already read this
I have been using iterators for a while and I love them. But although
I am using urls like this parameters http://localhost/articles/?author=Ben%20Cooper%2CAlex%20Hunter&title=.....&tags=.. I urlencode them in the links.
I saw on a article this statement: Developers love to optimize code and with
I love this shortcut in borne shell, and want to find out if it
Why isn't this project maintained anymore? I love this app, however not updating it
Whilst I'd love to solve this problem in python, I'm stuck in Delphi for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.