|
Posted by J.O. Aho on 09/03/06 03:51
Andy Hassall wrote:
> On Sat, 02 Sep 2006 23:07:05 +0200, "J.O. Aho" <user@example.net> wrote:
>
>> Jon Pike wrote:
>>> if test.php is this file:
>>> <?php
>>> $lang = $_POST["lang"];
>>> print $lang;
>>> ?>
>>>
>>> <form method=post action=test.php>
>>> <input type=image src=engFlag.jpg name="lang" value=en>
>>> <input type=image src=fraFlag.jpg name="lang" value=fr>
>>> </form>
>>>
>>> Why won't it print $lang; after having one of the images clicked?
>> For the form isn't valid html?
>
> Other than the missing document around it (<html>,<head> etc.), what's invalid
> about it?
The w3 validator would spit out quite many errors, there should be a quotation
around all values given to type, src, value, action and method.
> (p.s. original was multiposted, it's also in comp.lang.php)
urg
//Aho
Navigation:
[Reply to this message]
|