Skip to content
Advertisement

how to prompt a delete confirmation inside the php echo with an image inside an a tag link

I have done this code in viewstudents.php the deletion process worked with the image but I’m not able to do the javascript part inside php inside the echo i mean can someone help me out. here is my code:

JavaScript

it worked fine with the image but I want to have a confirmation prompt that’s not working can someone help me out please. Here is my php action for deletion from the database in DeleteStudentAction.php

I really appreciate if someone would help me out because I’m new to php. Thanks!

Advertisement

Answer

You haven’t got quotes around your href, try this:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement