<?
/*Inserting into array here works but,
when I hit submit button matrixname and matrixalias forgets
previous values.
One way is using cookies but the problem is that
I need insert hundreds of values.
The another way Is create temporary table but then I have to
create update delete this table all time.
*/
form();
if (isset($Name)) {
$matrixname[] = "$Name";
$matrixalias[] = "$Alias";
for ($i=0; $i<$rows; $i++) {
echo "$matrixname[$i] ";
echo "$matrixalias[$i]<br>";
}
}
function form() {
echo "
<form>
<p>Name<input type='text' size='20' name='Name'>
Alias <input type='text' size='20' name='Alias'></p>
<input type='submit'>
</form>
";
}
?>
can anybody modify this script? to showing me how is possible remember those walues, I heard litle about serializing into HTTP_VARS but never used them before.
Thanx...