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

Ian Hickson ian at hixie.ch
Thu Aug 24 18:01:45 PDT 2006


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list