How to exchange data between forms in one document with pure HTML?

How to exchange data between forms in one document with pure HTML?

am 06.01.2008 21:28:44 von Markus Stein

Is there a possibility to exchange data between
forms in one html document with pure html (no PHP,
no server variables etc.)?

Example:





















I want that if I click on the sendformular1 button
the text in field inputformular1 appears in inputformular2
and vice versa.

Is it possible with pure html?

Re: How to exchange data between forms in one document with pure HTML?

am 06.01.2008 22:38:59 von lws4art

Markus Stein wrote:
> Is there a possibility to exchange data between
> forms in one html document with pure html (no PHP,
> no server variables etc.)?
>
> Example:
>
>
>
>
>
>
>
>


>
>
>

>
>
>

>
>
>

>
>
>
>
> I want that if I click on the sendformular1 button
> the text in field inputformular1 appears in inputformular2
> and vice versa.
>
> Is it possible with pure html?

No.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: How to exchange data between forms in one document with pure HTML?

am 06.01.2008 22:48:59 von Neredbojias

Well bust mah britches and call me cheeky, on Sun, 06 Jan 2008 20:28:44 GMT
Markus Stein scribed:

> Is there a possibility to exchange data between
> forms in one html document with pure html (no PHP,
> no server variables etc.)?
>
> Example:
>
>
>
>
>
>
>
>


>
>
>

>
>
>

>
>
>

>
>
>
>
> I want that if I click on the sendformular1 button
> the text in field inputformular1 appears in inputformular2
> and vice versa.
>
> Is it possible with pure html?

No, but you could do something with javascript. Btw, forms need an
"action" attribute.

--
Neredbojias
Riches are their own reward.

Re: How to exchange data between forms in one document with pureHTML?

am 07.01.2008 19:21:07 von jeff

Neredbojias wrote:
> Well bust mah britches and call me cheeky, on Sun, 06 Jan 2008 20:28:44 GMT
> Markus Stein scribed:
>
>> Is there a possibility to exchange data between
>> forms in one html document with pure html (no PHP,
>> no server variables etc.)?
>>
>> Example:
>>
>>
>>
>>
>>
>>
>>
>>


>>
>>
>>

>>
>>
>>

>>
>>
>>

>>
>>
>>
>>
>> I want that if I click on the sendformular1 button
>> the text in field inputformular1 appears in inputformular2
>> and vice versa.
>>
>> Is it possible with pure html?
>
> No, but you could do something with javascript. Btw, forms need an
> "action" attribute.

I believe that if you leave out action, most browsers will point back
at the page URL. Not good practice though...and that certainly wouldn't
help if it wasn't what you wanted!

Jeff
>

Re: How to exchange data between forms in one document with pure HTML?

am 07.01.2008 19:57:13 von Bergamot

Jeff wrote:
> Neredbojias wrote:
>>
>> Btw, forms need an
>> "action" attribute.
>
> I believe that if you leave out action, most browsers will point back
> at the page URL.

The action attribute was optional in HTML 3.2, but has been required on
the form element in all versions since then.

--
Berg

Re: How to exchange data between forms in one document with pure HTML?

am 07.01.2008 21:52:05 von lws4art

Jeff wrote:
> Neredbojias wrote:
>> Well bust mah britches and call me cheeky, on Sun, 06 Jan 2008
>> 20:28:44 GMT Markus Stein scribed:
>>
>>> Is there a possibility to exchange data between
>>> forms in one html document with pure html (no PHP,
>>> no server variables etc.)?
>>>
>>> Example:
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>


>>>
>>>
>>>

>>>
>>>
>>>

>>>
>>>
>>>

>>>
>>>
>>>
>>>
>>> I want that if I click on the sendformular1 button
>>> the text in field inputformular1 appears in inputformular2
>>> and vice versa.
>>>
>>> Is it possible with pure html?
>>
>> No, but you could do something with javascript. Btw, forms need an
>> "action" attribute.
>
> I believe that if you leave out action, most browsers will point back
> at the page URL. Not good practice though...and that certainly wouldn't
> help if it wasn't what you wanted!

It will not do what OP wishes and that is transfer and process data. You
need scripting for that. HTML is not a scripting language, it doesn't
"do" anything.


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: How to exchange data between forms in one document with pure HTML?

am 07.01.2008 22:39:19 von jeff

Jonathan N. Little wrote:
> Jeff wrote:
>> Neredbojias wrote:
>>> Well bust mah britches and call me cheeky, on Sun, 06 Jan 2008
>>> 20:28:44 GMT Markus Stein scribed:
>>>
>>>> Is there a possibility to exchange data between
>>>> forms in one html document with pure html (no PHP,
>>>> no server variables etc.)?
>>>>
>>>> Example:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>


>>>>
>>>>
>>>>

>>>>
>>>>
>>>>

>>>>
>>>>
>>>>

>>>>
>>>>
>>>>
>>>>
>>>> I want that if I click on the sendformular1 button
>>>> the text in field inputformular1 appears in inputformular2
>>>> and vice versa.
>>>>
>>>> Is it possible with pure html?
>>>
>>> No, but you could do something with javascript. Btw, forms need an
>>> "action" attribute.
>>
>> I believe that if you leave out action, most browsers will point
>> back at the page URL. Not good practice though...and that certainly
>> wouldn't help if it wasn't what you wanted!
>
> It will not do what OP wishes and that is transfer and process data. You
> need scripting for that. HTML is not a scripting language, it doesn't
> "do" anything.
>
>
Lets say for an example that the form is on a server page and if it
receives either post or get data it will do something with it. If not it
will display the form. That is not an unusual setup.

Note Bergamots post on action being optional in 3.2. Certainly
without a doctype it wouldn't be html 4.

It's all a minor point and I hope I won't regret bringing it up!

Jeff