garyng818
09-25-2003, 07:18 AM
I have a form, in there have a save and delete button, when click delete button, then there will hv a pop up window to ask is really to delete the record or not. and then will return to the form in the main window to do the delete process. I am now stuck in the point that how I can pass the form variable to the pop up wiondow and then back to the form? since i use java script to open the pop up window, the session variable cannot work for it... so any other method?
my code is like this:
<script type="text/javascript">
function CheckDelete() {
var answer = confirm ("Are you sure you want to delete this record?")
if (answer) { window.location="delete.php"; } }
</script>
<input type="button" name="Submit2" value="Del" onclick="javascript:CheckDelete()">
my code is like this:
<script type="text/javascript">
function CheckDelete() {
var answer = confirm ("Are you sure you want to delete this record?")
if (answer) { window.location="delete.php"; } }
</script>
<input type="button" name="Submit2" value="Del" onclick="javascript:CheckDelete()">