Jump to content

How to submit a form without a submit button


madhukar_garg

Recommended Posts

place it somewhere in the form.

It's just a simple link with a javascript action to it. to change what you're using as the replacement to the button, just change what is between the <a></a>

 

change the 'formname' part in the onclick to whatever your form is called.

onclick="javascript:document.formname.submit();"

 

if you haven't named it, just put the name tag in the form part.. i.e:

<form name="myform" method="post" action="sendform.php">

 

 

EDIT: just caught your last post.. you can do it using javascript, but I'm not sure on the code.. sorry.

try posting in the javascript section

Link to comment
Share on other sites

you should NOT remove a submit button in favour of a javascript link to submit a form...

 

ok have a submit button insside a <noscript> tag if you must but at the very least have one in there..

 

Why do you need to NOt have a submit button?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.