Here is my problem, I want my script to do this: -before the user reject entry(server side), system must prompt text box asking the reason why they want to reject it. and then save the reason they input to MySQL server.
Javascript Function:
function MyReason(){
var reason = prompt("Reason");
}
PHP Snippet:
echo "<td> <a href=changeStatReject.php?id=" . $row['id'] . ">" . "<img src='media/reject.png'>" . "</a></td>";
From Here, I want to get the value of prompt box and pass it to
changeStatReject.php
and save it in DB.
Thanks Mates.