hiya,
Is there a way to concatenate (and then evaluate) 2 variables to create a reference to another variable - Like eval('my' + 'var') to get the value of the variable called "myvar" in javascript?
This small, "made up" code snippet below may give you an idea of what i'm looking to do . . .
<a name="myFormFunction">
<form action="postForm.html" method="post">
. . .
<input name="val1" value="$'val1'"><br>
<input name="val2" value="$'val2'"><br>
<input name="val3" value="$'val3'"><br>
. . .
</form>
</a>
<a name="postForm">
<!--
(READ val+$i as evaluated variable that I'm trying to make)
-->
<$i = 0>
<$max = 10>
<while $i lt $max>
<sql max=1 novars "insert into mytable values(counter, val+$i)"></sql>
<$i = (1+$i)>
</while>
</a>
Mucho Thanks,
Mel
Is there a way to concatenate (and then evaluate) 2 variables to create a reference to another variable - Like eval('my' + 'var') to get the value of the variable called "myvar" in javascript?
This small, "made up" code snippet below may give you an idea of what i'm looking to do . . .
<a name="myFormFunction">
<form action="postForm.html" method="post">
. . .
<input name="val1" value="$'val1'"><br>
<input name="val2" value="$'val2'"><br>
<input name="val3" value="$'val3'"><br>
. . .
</form>
</a>
<a name="postForm">
<!--
(READ val+$i as evaluated variable that I'm trying to make)
-->
<$i = 0>
<$max = 10>
<while $i lt $max>
<sql max=1 novars "insert into mytable values(counter, val+$i)"></sql>
<$i = (1+$i)>
</while>
</a>
Mucho Thanks,
Mel