Vote count:
0
I'm generating a table using this code:
while ($row = mysql_fetch_array($result)) {
echo "<tr>";
echo "<td>{$row['rollNo']}</td>";
echo "<td>{$row['bgroup']}</td>";
echo "<td>{$row['first_name']}</td>";
echo "<td>{$row['last_name']}</td>";
echo "<td>{$row['phone']}</td>";
echo "<td>{$row['e_mail']}</td>";
echo "<td><input type='button' value='Send Email'></td>";
echo "</tr>";
The output:
When I click on Send Email, I want to trigger an email to the email corresponding to the button. How can I send the email address beside the button as input to the email() function?
Thanks in advance!
asked 32 secs ago
Trigger email to the corresponding email address
Aucun commentaire:
Enregistrer un commentaire