Hi guys,
I know this sound trivial, but I cannot find a way to do this simple task.
I have a form which is repeated in various pages with different values, and only one text field. In the same page (php) the same form is double, with a different name in case it is an update or a add action in the database.
I have this simple js that I use on an onclick of an image :
Is there a way to validate the single field (whose name changes in several pages) without defining it manually in every page ?
In other word, would it be possible to use something like :
submitform(fieldName)
Thanks !
--
PG
I know this sound trivial, but I cannot find a way to do this simple task.
I have a form which is repeated in various pages with different values, and only one text field. In the same page (php) the same form is double, with a different name in case it is an update or a add action in the database.
I have this simple js that I use on an onclick of an image :
Code:
<A class="aform" href="javascript: submitform()">
----
function submitform()
{
document.forms[0].submit();
}
----
Is there a way to validate the single field (whose name changes in several pages) without defining it manually in every page ?
In other word, would it be possible to use something like :
submitform(fieldName)
Thanks !
--
PG