Re: A problem with passing $_GET in an url
| From: | Davis Chan | Date: | Fri, 04 May 2007 01:01:08 +0000 |
| Subject: | Re: A problem with passing $_GET in an url | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254382@lists.php.net to get a copy of this message | ||
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.