tags:

views:

203

answers:

6

i am in a situation using two submit buttons in a same page. is there any alternative to post data without using submit button?. help me

+1  A: 

Yes. For server-side form submission simulation, curl (and php built-in libcurl) can be used to issue POST requests.

Alex
+5  A: 

yes using javascript, you can call form.submit

http://www.javascript-coder.com/javascript-form/javascript-form-submit.phtml

Priyank Bolia
+1  A: 

Yes, you can, using javascript. But perhaps you should reconsider your applications flow.

troelskn
+7  A: 

If you don't want a submit button, you can do so using links too.

<a href="#" onclick="submit_form(); return false;">Submit</a>

<script>
function submit_form()
{
  document.form_name_here.submit();
}
</script>
Sarfraz
Thanks mate, its working
Rajasekar
you should probably use `document.getElementById("formname").submit();` instead
Sune Rievers
that's a great news :)
Sarfraz
A: 

try document.form_name.submit() document.form_name_1.submit();

Summy
A: 

is it possible using php code to get the selected option from select tag? Please help.

Hendy