درست کردم و توی فایل index.php براتون قرار دادم
index.zip
اینم از کد :
کد PHP:
<?php
$a = $_POST['a'];
$b = $_POST['b'];
?>
<form method="post">
<table>
<tr>
<th width="200" scope="row">a = </th>
<td><input type="text" name="a" /></td>
</tr>
<br />
<tr>
<th width="200" scope="row">b = </th>
<td><input type="text" name="b" /></td>
</tr>
<br />
<tr>
<td><input type="submit" value="Sum" /></td>
</tr>
</form>
<br>
<?php
echo "a + b= ";
echo "$a" + "$b";
?>






پاسخ با نقل قول