Re: A beginner´s question

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

 



> How do I move the content of $tastes to X of
>         echo "<textarea rows="5" cols="28" readonly name=X>\n";


- with simple quotes (better!):
echo '<textarea rows="5" cols="28" readonly name="'.$tastes.'">';


- on the contrary, you will need a backslash in doublequotes:
echo "<textarea rows=\"5\" cols=\"28\" readonly name=\"$tastes\">";


- also, you can close php brackets before and after putting the php
code inside:

<?

// I break here:
?>
<textarea rows="5" cols="28" readonly name="<? echo $tastes; ?>">
<?
// ...continue

?>

best regards,



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