AW: [PHP-DB] Could be this less complicated?

From: Date: Thu, 13 Jul 2000 10:35:28 +0000
Subject: AW: [PHP-DB] Could be this less complicated?
Groups: php.db 
Request: Send a blank email to php-db+get-1098@lists.php.net to get a copy of this message
Hi, there is an easy solution : just mark the quotes with an \. You can do this automaticly with addslashes($string) and remove it with stripslashes($string). Regards Stefan Sels <? $tag=5555; echo "<TD bgcolor=\"#56a4d8\"><FONT size=1> <INPUT maxLength=5 name=tagdisabled value=\"$tag\" style=\"HEIGHT: 22px; WIDTH: 89px\"></FONT></TD>"; ?> -----Ursprüngliche Nachricht----- Von: Vojtech Dvorák [mailto:vojtech_dvorak@servind.cz] Gesendet: Donnerstag, 13. Juli 2000 12:28 An: php-db@lists.php.net Betreff: [PHP-DB] Could be this less complicated? Hi, I am just fighting with quotes problem. I know a solution for it, but is this easiest way how to do that? <?php $tag=5555; echo '<TD bgcolor="#56a4d8"><FONT size=1><INPUT maxLength=5 name=tag disabled value="'; echo "$tag"; echo '" style="HEIGHT: 22px; WIDTH: 89px"></FONT></TD>'; ?> It works (it print a field with 5555), but I have to cut the line to three lines in PHP... is there any other way how I can work with '," etc.? thanks Vojtech -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#1098) next »