Gil
08-06-2002, 04:41 PM
Hi,
Can someone explain the next thing to me. I can submit a form with the following button and pas a value for the field "testfield":
<input type="submit" Onclick="this.form.testfield.value='myvalue'">
If I want to do the same with a textual html link it will only work if the form has a name, so I gave the form the name test:
<a href="#" Onclick="test.testfield.value='mysecondvalue';test.submit()">Submit</a>
I must be doing something wrong if this isn't a 'feature' in HTML
I I use:
<a href="#" Onclick="this.form.testfield.value='myvalue';this.form.submit()">Submit</a>
it will not be submitted.
Can someone explain this to me so I can make it work?
....thanks a BIG lot,
Gil
Can someone explain the next thing to me. I can submit a form with the following button and pas a value for the field "testfield":
<input type="submit" Onclick="this.form.testfield.value='myvalue'">
If I want to do the same with a textual html link it will only work if the form has a name, so I gave the form the name test:
<a href="#" Onclick="test.testfield.value='mysecondvalue';test.submit()">Submit</a>
I must be doing something wrong if this isn't a 'feature' in HTML
I I use:
<a href="#" Onclick="this.form.testfield.value='myvalue';this.form.submit()">Submit</a>
it will not be submitted.
Can someone explain this to me so I can make it work?
....thanks a BIG lot,
Gil