Hallo,
hatte auch mal ein ähnliches Problem, bin damals im Archiv fündig geworden.
Wenn die Problemstellung ist: gibt es diese Variable im Formular überhaupt, dann hilft dier folgendes Javascript Konstrukt:
Aufruf:
<script language="JavaScript" type="text/javascript">
<!--
.
.
.
if (IsVar("foo"))
{
-- ja anscheinend --
}
else
{
-- nee --
}
.
.
function IsVar(varName)
{
var _tmp;
try
{
eval("_tmp = document.Main."+varName+".value;");
return true;
}
catch (error)
{
return false;
}
}
</script>
Hope it helps
Michael