Posted by J.O. Aho on 09/02/06 21:07
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?
Navigation:
[Reply to this message]
|