我有一个代码
<form action="index.php" method="post">
<input type="text" name="jam" />
<input type="submit" name="submit" value="Translate" />
</form>
<?php
$conn = mysql_connect ("localhost", "root","") or die (mysql_error());
mysql_set_charset('utf8',$conn);
mysql_select_db ("movedb");
$jam = $_POST['jam'];
$sql = mysql_query("select * from WORD where ENGLISH like '$jam%' Limit 15");
while ($row = mysql_fetch_array($sql)){
echo ' '.$row['ENGLISH'];
echo ' - '.$row['SINHALA'];
echo '<br/>';
}
?>
我想发布像 index.php?=text=(text box value here) 这样的文本值
我想把它提交给$jam