Javascript

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Javascript

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply