CODE
<script language="javascript">
<!-- Hide from non-JavaScript Browsers
function ConfirmChoice()
{
answer = confirm("Really Delete?");
if (answer !=0)
{
location = "index.php?page=NewsUpdater&page2=Delete&date=$date&subject=$subject";
}
}
//Done Hiding-->
</script>
Then I call this javascript with the following code
CODE
echo "
<a href='#' onclick='ConfirmChoice(); return false;'>Delete</a>";
When I click delete it asks for the confirm but then does not delete it. I know it has to do with the php variables in the url. I have dug through numerous forums and websites on this subject but have not found a way to work this out.
Any thoughts/ideas?