QUOTE(abubin @ Jun 26 2008, 11:09 PM)
aihh...still got some problem.
I have created a function for submitting forms. The function will be called onclick of the graphics button.
Why doesn't document.location works in my javascript file?
I have
document.myform.field1.value = aaa
document.myform.field2.value = bbb
document.myform.field3.value = document.myform.field1.value + document.myform.field2.value
So, when I submit the form "document.myform.submit()", all the three values got submitted. I only want to submit field3. How? I have tried "document.location = 'field3'" but doesn't work.
Why not have the form submit all 3 and then only use one ? also use post instead of get, get is very easy to manipulate.I have created a function for submitting forms. The function will be called onclick of the graphics button.
Why doesn't document.location works in my javascript file?
I have
document.myform.field1.value = aaa
document.myform.field2.value = bbb
document.myform.field3.value = document.myform.field1.value + document.myform.field2.value
So, when I submit the form "document.myform.submit()", all the three values got submitted. I only want to submit field3. How? I have tried "document.location = 'field3'" but doesn't work.
Jun 27 2008, 12:26 PM

Quote
0.0157sec
0.12
6 queries
GZIP Disabled