Jump to content

php + javascript


jamkelvl

Recommended Posts

You can see the obvious error if you look at the syntax highlighting. You need to escape the quotes within alert, or use double quotes:

<?php echo '<td class="view" width=""><a href="edit.php?recordID='.$id.'">edit</a> <a href="delete.php?recordType=job&recordID='.$id.'" onClick="alert(\'Alert message goes here\');">delete</a></td>'; ?>

Link to comment
https://forums.phpfreaks.com/topic/188724-php-javascript/#findComment-996255
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.