Page 1 of 1

Javascript

Posted: Sun Oct 10, 2004 8:26 pm
by Shendemiar
this.form.submit()

Can i put something as a parameter?

Like:

this.form.submit(name=sam)

OR

this.form.submit(name='K';value='S')



Or is there any other way to make a FORM POST without using any form objects.

Posted: Sun Oct 10, 2004 11:22 pm
by feyd
first off, this was in the wrong forum.

this.form is a form object. You can ask Javascript to create new form elements, however you still require a form. Javascript can create these too, I believe. However it's quite simple to create a form that uses hidden inputs, so that's the direction most often taken.