Rajat Rajat - 2 months ago 14
HTML Question

After update button is clicked,than it does not go to php file wriiten inside anchor tag?

Here is the code Snippet :

echo "<td> <a href=SalaryUpdateForm.php?id = ".$resultArr["EmployeeId"]."
Update </a></td>";

Answer Source

try below code , this will helpful to you.

 $id = $resultArr["EmployeeId"];
 echo "<td><a href='SalaryUpdateForm.php?id=$id'>Update..</a></td>";

ANOTHER SOLUTION IS:

 echo "<td><a href='SalaryUpdateForm.php?id=$resultArr[EmployeeId]'>Update..</a></td>";

When you use "" then you can easily use php variables without concatinate.