|
Posted by Ben Holness on 05/20/06 15:51
Try this,
<?php
foreach ($_REQUEST['delete'] as $val){
?>
<input type="hidden" name="delete[]" value="<?php echo $val; ?>">
<?php
}
?>
Otherwise you can use sessions as Gordon mentions, which is more secure;
At the top of each page add the line
session_start();
When you get the delete array, add it to the session
$_SESSION['deleteArray']=$_REQUEST['delete'];
When you actually want to delete the items, use $_SESSION['deleteArray']
More information under sessions at php.net
Ben
Navigation:
[Reply to this message]
|