Is it possible to send the datas from a formular by a simple link. This is because i want anothe interface to send my data.
Button submit avoid...
Here is an example:
| Code: |
|
<html> <body> <form name="myform" action="handle-data.php"> Search: <input type='text' name='query'> <A href="javascript: submitform()">Search</A> </form> <SCRIPT language="JavaScript"> function submitform() { document.myform.submit(); } </SCRIPT> |
How do i write the javascript submission?
You don't have to. submit() is a builtin Javascript funtion which submits the form, as if the users has clicked a submit button.
Let me try it and tell you the result... 
oR you may simple go directly to called the submit directly
but make it sure that you have the name of your form.
| Code: |
|
<a href="javascript: document.youform.submit();"> SAMPLE LINK</a> |
but make it sure that you have the name of your form.
