Warli
05-12-2003, 05:31 AM
Hello,
i have a simply question...
I would like to send a value from a HIDDEN Field to another side.
with HTML...:
->form.html
<form name="form1" method="post" action="form1.php">
<input TYPE="hidden" value="TEST" name="TEST">
<input TYPE="submit">
</form>
->form1.php
<?
echo $TEST;
?>
...thats easy
my question:
for the submit button I would indicate a text (no TYPE="text")
how accomplish the action?
my source:
<script type="text/javascript">
<!--
function go()
{
document.form1.submit();
}
//-->
</script>
<form name="form1" method="post" action="form1.php">
<input TYPE="hidden" value="TEST" name="TEST">
<a href="#" onClick="Go()">TEST</a>
</form>
?>
I hope anybody helps me... thanks a lot
warli
i have a simply question...
I would like to send a value from a HIDDEN Field to another side.
with HTML...:
->form.html
<form name="form1" method="post" action="form1.php">
<input TYPE="hidden" value="TEST" name="TEST">
<input TYPE="submit">
</form>
->form1.php
<?
echo $TEST;
?>
...thats easy
my question:
for the submit button I would indicate a text (no TYPE="text")
how accomplish the action?
my source:
<script type="text/javascript">
<!--
function go()
{
document.form1.submit();
}
//-->
</script>
<form name="form1" method="post" action="form1.php">
<input TYPE="hidden" value="TEST" name="TEST">
<a href="#" onClick="Go()">TEST</a>
</form>
?>
I hope anybody helps me... thanks a lot
warli