86
rated 0 times
[
89]
[
3]
/ answers: 1 / hits: 16399
/ 11 Years ago, wed, september 4, 2013, 12:00:00
this is my javascript code
<script type=text/javascript>
function MyFunc(lang){
var ll = lang;
//alert(ll);
}
</script>
my html code
<form method=post action=mypage.php?>>
<div>
<input type='image' src='/images/flags/us.png' name='US' value='en_EN' onclick='MyFunc(this.value)'/>
<input type='image' src='/images/flags/it.png' name='IT' value='it_IT' onclick='MyFunc(this.value)'/>
<input type='image' src='/images/flags/fr.png' name='FR' value='fr_FR' onclick='MyFunc(this.value)'/>
</div>
now how can i send the javascript var ll
value to mypage.php
Actually I want the image alt value to pass it, How it is possible please give some idea..
More From » php