Hi there,
I have the following problem:
How can I use variables in the $_POST statement?
Here is my code:
$old_station[$o] = $_POST['$i'];
$new_station[$o] = $_POST['$i'];
echo "<form name='station_change' method='post'
action='station_change.php'>";
echo "<TABLE BORDER=0>";
while ($status_array = mysql_fetch_array($status))
{
$i++;
echo "<tr>";
echo "<td>"."<FONT FACE='Helvetica' SIZE=-1>";
echo $status_array[1];
echo "</td>";
echo "<td>";
echo "<input type='text' size=2 name='$i'
value='$status_array[1]'>"."<input type='hidden' name='$i'
value='$test'>"."<br>";
echo "</td>";
echo "</tr>";
}
echo "</table>";
echo "<input type='hidden' name='counter' value='$i'>";
echo "<br>";
echo "<br>";
echo "<input type='submit' name='action' value='Change'>";
echo "<input type='submit' name='action' value='Delete'>";
echo "</form>";
can anyone help me?
thx for your help
Christian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php