I am trying to pass two variables in a JavaScript function that pop up a confirmation box before deleting a record from the database MySQL, but I think there is something wrong in the syntax.
Below is the code of the link that fires the confirmation box when it is clicked but it doesn't work and I am not sure if I am passing the parameters in a right way:
echo"<td><a href='javascript:promptbox(" . $myemail . "," . $appNo .")'>cancel</a></td>";
Can someone please let me know whether its a syntax error or is there any other problem?
Thanks