Jump to content

[SOLVED] Javascript with PHP


rainemaida

Recommended Posts

I am currently trying to add a Javascript function to a ahref in an echo statement.

 

echo '<a href="coursedocumentsstaff.php?id='.$row['id'].'">Remove </a>';

 

 

I want to add the following to it..

 

onclick="return (confirm('do you really want to delete the stuff?'));"

 

 

Please can you help me out.

Thank you,

Steve

Link to comment
https://forums.phpfreaks.com/topic/45267-solved-javascript-with-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.