RE: ptting the variable inside the input

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
 [snip]
echo $title=$row['title'];
echo "<tr><td><input name=\"title\" type=\"text\ value=\"$title\"
/></td>";
[/snip]

echo "<tr><td><input name=\"title\" type=\"text\ value=\"".$title."\"
/></td>";

You have to concatenate the value $title into the string
[/snip]

Actually don't have to do that, it was just one of the things that I
thought of right off the top of my head. What is the result of 

echo $title=$row['title'];

?

Actually, that is bad form, why do the transfer?

echo "<tr><td><input name=\"title\" type=\"text\
value=\"".$row['title']."\"
/></td>";

If you must do the re-assignment;

$title = $row['title'];
echo $title;

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux