Forum Moderators: coopster
Got some code below
I want it so when the submit button is pressed the value that appears in the text box on the next page is the 'id number'
but keep getting error
Parse error: parse error in public_html/cinemaBookingStageOne.php
I know its something to do with this line
NAME=variableName value ="<? echo $row['filmid']?>" SIZE=5>";
Could it be the syntax?
for($j=0; $j<$nrows; $j++)
{
echo ( '<form action="cinemaBookingStageTwo.php" method="post">' );
$row = pg_fetch_array ($result);
printf ("<tr><td>%s</td>
<td>%s</td>
</tr>", $myrow['filmid']);
print "<tr><td>" . $row["filmid"];
print "<td><INPUT TYPE=TEXT NAME=variableName value ="<? echo $row['filmid']?>" SIZE=5>";
print "\n";
}