I have the following code pagina1.php
<input type="checkbox" class="case" name="case[]" value="<?php printf("%s",$row["nombre"]); printf("|"); printf("%s",$row["fecha"]); printf("|"); printf("%s",$row["hora"]);?>">
I send it to pagina2.php
$evento = $_POST["case"];
<form id ="form3" action="pagina3.php" method="post" name="forma3">
foreach ($evento as $value) {
printf("<input type=\"hidden\" name=\"evento[]\" value=\"%s\" align=\"right\"/>",$value);
}
</form>
The result if I give an echo to $value
It is as follows:
texto101.zip|2015-09-03|'04:00:00'
On page3.php I receive it like this
$evento = $_POST["evento"];
How is it possible to store each value from $evento
in variables and something like this:
name=texto101.zip
fecha=2015-09-03
hora='04:00:00'