M
Michael Pedersen
Hi group
I want to be able to expand a huge form with a number of text fields.
The number of fields must be entered in a form field and submitted, or
alternatively be a drop down menu. I have tried both, but none of the
methods succeded. When the submit button is hit a new page enters with
the form inputs, I want them to appear at the end of my form.
I have tried with something like:
<form NAME="formname">
..
..
..
<input TYPE="text" NAME="test">
<input TYPE="BUTTON" VALUE="Press" onclick="show();">
<script type="text/javascript"><!--
function show(){
tmp = document.formname.test.value;
for(i = 1; i <= tmp; i++){
document.write("<input type=\"text\" name=\"save[]\"><br> ");
}
}
//--></script>
</form>
In the drop down menu I tried using "onchange" with same result.
It does not work, does anyone have a suggestion??
Regards
Michael
I want to be able to expand a huge form with a number of text fields.
The number of fields must be entered in a form field and submitted, or
alternatively be a drop down menu. I have tried both, but none of the
methods succeded. When the submit button is hit a new page enters with
the form inputs, I want them to appear at the end of my form.
I have tried with something like:
<form NAME="formname">
..
..
..
<input TYPE="text" NAME="test">
<input TYPE="BUTTON" VALUE="Press" onclick="show();">
<script type="text/javascript"><!--
function show(){
tmp = document.formname.test.value;
for(i = 1; i <= tmp; i++){
document.write("<input type=\"text\" name=\"save[]\"><br> ");
}
}
//--></script>
</form>
In the drop down menu I tried using "onchange" with same result.
It does not work, does anyone have a suggestion??
Regards
Michael