I’m trying to make this:
174,myfilename.jpg
Into this on the php post process page:
$id = 174
$filename = myfilename.jpg
The problem is that id=174,myfilename.jpg
The way that I get my values is using an ajax post function.
<a href="javascript:void(0)" id="<?php echo $id ;?>,<?php echo $filename;?>" onclick="deleteFile(id,name)" ><img border="0" src="images/close.png"></a>
function deleteFile(id,name) {
if (confirm("..."))
{
var txt = $.ajax({
url: 'deletefile.php',
async: true,
type:'POST',
data:({
id:id,
lid: <?php echo $_GET['id'];?>
})
}).success;
$('.successRemoveFile').slideDown('slow');
//setTimeout(function(){ window.top.location.reload();}, 2000);
}
}
Thanks in advance.
jonny.
sounds like
explodeandlistare what you’re looking for: