Submit and Value ...
Posted: Sun Oct 11, 2009 12:10 pm
Hello friends,
let us cosider
and we have a form with submit option as following
and its php code
at the php code ($submit) is xx
at the html code (value) is xx
NOW THE PROBLEM
when i exchange xx with $a[1]['en'] = "ok";
where i write in PHP CODE
and in HTML CODE
it didn't works
so how can i make value and submit the same using that lang variables
thanks in advance
let us cosider
Code: Select all
$a[1]['en'] = "ok";Code: Select all
<form method=post>
<tr>
<td>name :</td>
<td><input type=text name=PlanName></td>
</tr>
<tr>
<td><input type=submit name=submit value="xx"></td>
</tr>
</form>
and its php code
Code: Select all
if(isset($submit) && $submit == 'xx')
{
$q1 = "insert into table set
name = \"$name\" ";
mysql_query($q1) or die(mysql_error());
}
at the php code ($submit) is xx
at the html code (value) is xx
NOW THE PROBLEM
when i exchange xx with $a[1]['en'] = "ok";
where i write in PHP CODE
Code: Select all
if(isset($submit) && $submit == '{$a[957][$lang]}')Code: Select all
<input type=submit name=submit value="<? echo $a[1][$lang]; ?>">it didn't works
so how can i make value and submit the same using that lang variables
Code: Select all
$a[1]['en'] = "ok";thanks in advance