Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

HTML need help on forms

views
     
wodenus
post Jun 27 2008, 12:26 PM

Tree Octopus
********
All Stars
14,990 posts

Joined: Jan 2003
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.


 

Change to:
| Lo-Fi Version
0.0157sec    0.12    6 queries    GZIP Disabled
Time is now: 30th November 2025 - 01:42 AM