Hi,
I am new to these forums and to php itself. I have recently started working on a php based website and stumbled on the following issue. This is most likely something very simple, however I am struggling to explain what is wrong in google search to get to the right solution.
The following code works fine except for 1 problem.
variables $row['t1name'] and row['t2name'] contain 3 words each. However the value of the field is assigned as the first word only. Nothing after 1st space is included.
Any help would be really appreciated.
Many Thanks
bodis
Code:
<?php
while ($row = mysql_fetch_array($result)) {
echo "<form action='login.php' method='POST'>";
echo "<tr>";
echo "<td align='center' valign='middle'><input type='text' name='gameid' value=" . $row['g_id'] . " readonly size='15'></td>";
echo "<td align='center' valign='middle'><input type='text' name='gameid' value=" . $row['t1name'] . " readonly size='15'></td>";
echo "<td align='center' valign='middle'><input type='text' name='gameid' value=" . $row['t2name'] . " readonly size='15'></td>";
echo "<td align='center' valign='middle'><input type ='submit' value ='Confirm game'></td>";
echo "</form>";
echo "</tr>";
}
?>