Forum Moderators: coopster
how do i receive this as this&that
<?php
// Do whatever you do to get $file. No need to encode, decode, or anything.
echo '
<form action="deletefile.php" method="post" onsubmit="return verifyDelete(\'' . $file . '\');">
<input type="hidden" name="file" value="' . $file . '">
<input type="submit" value="delete ' . $file . '">
</form>
<script type="text/javascript">
function verifyDelete(file) {
var ok = confirm('Delete file ' + file + '?');
return ok;
}
</script>
'; // end echo
?>
use an image as the submit button?