"Report Incorrect" implementation in PHP
Posted: Mon Dec 05, 2011 10:38 am
a page on my website will display name, mobilenumber and email based on certain match criteria. So far, it is able to display it the way i wanted it to.
Now i want to add a last colum to the table for each row with the title "report incorrect mobile number"
So when a user clicks on the "reports incorrect" for a given row in the table, it should send an email to the adminstrator email id with the name, mobile number and email details for that particular row.
How do i get started. Pls help ..I am completely stuck here
Thanks
the code so far:
Now i want to add a last colum to the table for each row with the title "report incorrect mobile number"
So when a user clicks on the "reports incorrect" for a given row in the table, it should send an email to the adminstrator email id with the name, mobile number and email details for that particular row.
How do i get started. Pls help ..I am completely stuck here
Thanks
the code so far:
Code: Select all
<table border="1"><tr><td>Matched Name</td><td>Contact Number</td><td>E mail</td><td>Report Incorrect</td></tr>
<?php while ($row = mysql_fetch_assoc($match)) // fetches results
{ ?>
<tr>
<td width=200> <?php echo $row['rname'] ?> </td>
<td> <?php echo $row['rmobilen'] ?></td>
<td> <?php echo $row['remail'] ?></td>
<td> <?php echo "report incorrect" ?></td> // this is where i want to include a clickable link which sends an automated email containing details for that particular row to the admin email id.
</tr>
<?php }?>
</table>