$POST['turnavn'] videre til ny side
Jeg vil gerne have $POST['turnavn'] videre til en ny side. Hvordan gør jeg det, skal jeg til at smide det ind i et array igen??? og i så fald hvordan gør jeg det?<?php
include ("../mysql.php");
$navn = $_POST["turnavn"];
$tur = $_POST["turtur"];
$belob = $_POST["turbelob"];
$dato = $_POST["turdato"];
$indud = $_POST["turindud"];
if ($_POST["skriv"]){
?>
<table border="0" align="center">
<tr>
<td>
<table align='center' border=0>
<td>
navn
</td>
<td>
Tur
</td>
<td>
Beløb
</td>
<td>
Dato
</td>
<td>
Ind / Ud
</td>
<?
foreach($navn as $data)
{
echo "<tr>";
echo "<td width=125>$data</td>";
echo "<td width=125>$tur</td>";
echo "<td width=80>$belob</td>";
echo "<td width=100>$dato</td>";
echo "<td width=70>$indud</td>";
echo "</tr>";
}
?>
</td>
</table>
</td>
</tr>
<tr>
<td>
<form method=post action="/login/default.php?side=./admin/confirm.php">
<table border=0 align=right>
<tr>
<td>
<input type="button" name="tilbage" value="Tilbage" onclick="history.back()">
</td>
<td>
<input type=submit VALUE="send">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<?
}
else
{
?>
<form method=post action=<? $PHP_SELF; ?>>
<input TYPE=hidden NAME=skriv VALUE=1>
navn:<select name="turnavn[]" size="9" multiple>
<?php
$navn = mysql_query("select uname from authuser");
while($row = mysql_fetch_array($navn)){
echo "<option value='$row[uname]'>$row[uname]</option>";
}
?>
</select><br>
tur:<input type=text name=turtur><br>
beløb<input type=text name=turbelob><br>
dato<input type=text name=turdato><br>
indud:<select name="turindud">
<option value="ind">ind</option>
<option value="ud">ud</option>
</select>
<br>
<input type=submit VALUE="send">
</form>
<?
}
?>
