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
2009-12-02 09:58:54
+5
A:
yes using javascript, you can call form.submit
http://www.javascript-coder.com/javascript-form/javascript-form-submit.phtml
Priyank Bolia
2009-12-02 09:59:09
+1
A:
Yes, you can, using javascript. But perhaps you should reconsider your applications flow.
troelskn
2009-12-02 09:59:24
+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
2009-12-02 10:01:16
Thanks mate, its working
Rajasekar
2009-12-02 10:07:23
you should probably use `document.getElementById("formname").submit();` instead
Sune Rievers
2009-12-02 10:14:56
that's a great news :)
Sarfraz
2009-12-02 10:16:05
A:
is it possible using php code to get the selected option from select tag? Please help.
Hendy
2010-03-31 16:44:50