<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<form action="2.php" method="post">
<table width="400" border="0">
<tr>
<td>Ders sayisi :</td>
<td><input type="text" name="sayi" /></td>
</tr>
<tr>
<td><input type="submit" name="gonder" value="Gonder" /></td>
</tr>
</table>
</form>
<?php
if(isset($_POST['gonder']))
{
for($i=1;$i<=$_POST['sayi'];$i++)
{
echo "$i.ders"." "."<input type='text' **name='e$i'** />"." - "."
<select name='dersler'><option **value='a1'**>A1</option>
<option **value='a2'**>A2</option><option **value='b1'**>B1</option>
<option **value='b2'**>B2</option><option **value='c'**>C</option></select>"."<br>";
}
}
//......
?>
</body>
Bold Text Here
How can I use html elements in echo command with php ? for example I want to calculate the average of lessons in these ones by using name tags.