Form Method?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I only use forms as input and output to javascripts. Many times I use
innerhtml to write to a <div> for output. I don't know of an
alternative for input.

I sometimes have problems if I use method="post" and just leave it off.
The browser tried to reload the page after the script ran.  Sometimes I
am able to even leave off <form> and </form>. Could someone explain
when form and method are actually needed?

I responded in comp.lang.javascript to "Adding to fields with
onchange". I had to leave "method=" out to get it to work without
trying to reload the page.

Dennis Marks /
To reply change none to dcsi.

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- - The #1 Newsgroup Service in the World!
-----==  Over 100,000 Newsgroups - 19 Different Servers! =-----

Re: Form Method?

Dennis Marks wrote:
Quoted text here. Click to load it

Forms fields serve as input for the program after the action="program"
in the <form> tag

Quoted text here. Click to load it

The input is sent as either method="post" or method="get"

Get sends the input via the url like this

And post send the input as a data stream to the program.

Quoted text here. Click to load it

Site Timeline