parametr
Posted: Wed Mar 14, 2007 5:22 am
How to do if I back a previous page, I will have a parametr,which was chosen by me.
example here :
file1.php
file2.php
example here :
file1.php
Code: Select all
echo "<form action='file2.php' method='POST'>";
for($i=0;$i<rows;$i++)
echo "<td><input type='radio' name='id' value='$id'>$id</td>";
echo "<tr><td><input type='submit' name='chose' value='Chose'></td></tr>";
}Code: Select all
$id=$_POST['id'];
if($id){
echo '<table><tr><td>$id<td></tr></table>';
echo "<input type='submit' name='chose' value='Send'></td></tr>";
}
else {
echo '<a href="file1.php">back</a>' ;// I have problem here, when I back, I have new table but I want a table with chosen button.
}