W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2006

[whatwg] Forms and POST'ing to data: URL's

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 25 Aug 2006 01:01:45 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0608250059250.10139@dhalsim.dreamhost.com>
On Wed, 26 Jul 2006, Charles Iliya Krempeaux wrote:
> 
> <form method="POST" action="### DATA URL HERE ###">
>    <input type="text" name="given_name" />
>    <input type="text" name="family_name" />
>    <input type="submit" value="generate letter" />
> </form>
> 
> How would you get the value of "given_name" and "family_name" into the 
> data URL?

You can't, unless you use JavaScript, I think.


> What I want is something like...
> 
> <form method="POST" action="data:,To whom it may concern.  My give name is
> '%%{given_name}' and my family name is '%%{family_name}'.  Sincerely,
> %%{given_name} %%{family_name}">

Interesting. What's the actual use case? I hadn't really envisaged data: 
being used for anything but debugging.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 24 August 2006 18:01:45 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:28 UTC