Hi! Everyone, here is the javascript function:
function Ask_Confirm()
{
response = confirm("Are you sure?");
if(response == true)
{
to_url = "./admin.php?to_be_rm=" + document.forms[1].to_be_rm.value;
// alert(to_url);
window.location = to_url;
}
else
{
// Do Nothing.
}
}
The alert(to_url) shows the correct/expected url. "to_be_rm" is the id
of a <select> on the second form on the page. Thanks again.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php