<form name="some_name" ........> Then on link use <a href="javascript:some_name.submit()"> Submit Form </a> I hope it helps. regards
This might be problem The id and name property are both "form" try another name and let ne know. Besides there is absolutely no need to have id proeprty of form because at document level name works just fine in all browsers. try this: <form method=\"post\" name=\"abc\"> then <a href=\"javascript:abc.submit()\">wyślij</a> or <a href=\"javascript:document.forms[0].submit()\">wyślij</a> # am not 100% sure about this since never used forms property of document
another way would be to do a transparent image with the text on and then use this as the button image.
Rename the form id and name. Instead of: <form method=\"post\" id=\"form\" name=\"form\"> Write: <form method=\"post\" id=\"myform\" name=\"myform\"> and Instead of: <a href=\"javascript:form.submit()\">wyślij</a> Write: <a href=\"javascript:document.myform.submit()\">wyślij</a> I'm not so familiar with PHP, but can you use single quotes instead? Like: <a href='javascript:document.myform.submit()'>wyślij</a>
It doesn't work because of this: if (empty($_POST['submit'])) { PHP: You are checking, if it was submitted by a button named "submit".