RE: ptting the variable inside the input

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

 



From: "Hulf" <ross@xxxxxxxxxxxxxx>

This does not work

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

Ta,

R.

I'll pull a Johnny Carson divining moment and say:

Did you need the first 'echo'?  Does $title need to be set?  Try:
$title=$row['title'];

You missed a double quote after your backslash; the attempt to escape one after 'text' and before 'value':
echo "<tr><td><input name=\"title\" type=\"text\" value=\"$title\" /></td>";

Or perhaps use single quotes and don't set $title:
echo '<tr><td><input name="title" type="text" value="' . $row['title'] . '" /></td>';

But I like that 4 step approach to addressing a problem and posting a question.

Maybe you are using a wireless keyboard which needs batteries or charging or needs to be placed closer to the receiver? You also missed a character in your subject. Unless you just type lazily.

_________________________________________________________________
Now you can see trouble?before he arrives http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_protection_0507

--
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