I am having a potential PHP/Javascript/HTML conflict going on in my code that I simply can't resolve - been wracking my brain for a good hour over this one and have come up with no good solution.
My resulting HTML tag MUST look like this:
<a href=index.php?section=person&action=delete_dept&id=1 onClick="return isOKDelete('Are you sure you wish to delete Department \"Phil\"?')">
Where
$deptName = 'Phil'
and
$section = 'person'
and
$action = 'delete_dept'
I can't figure out how to write my PHP code to ensure that that HTML tag will look like the above example and work in a dynamically-generated Javascript function, ALL at the very same time!
Help appreciated, this is a showstopper for my app!
Thanx
Phil