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

From: Date: Thu, 13 Jul 2000 10:34:16 +0000
Subject: RE: [PHP-DB] Could be this less complicated?
Groups: php.db 
Request: Send a blank email to php-db+get-1097@lists.php.net to get a copy of this message
The fastest, but not very elegant way is: <?php $tag=5555; ?> <TD bgcolor="#56a4d8"> <FONT size=1> <INPUT maxLength=5 name=tag disabled value="<?echo $tag; ?>" style="HEIGHT: 22px; WIDTH: 89px"></FONT></TD>'; Feel free to jump into PHP and escape from it as many times it makes your work easier. You can mix PHP with HTML for example in this way: <? for ($i=0; $i<10; $i++){ ?> <H2>Multiple headres</H2> <H3>Header no <? echo $i; ?></H3> <B>Just some text...</B> <?}?> -- -- Marcin Żylski, dział IT -- email: marcin.zylski@upc.com.pl -- tel. +48 32 20 07 485 -- -----Original Message----- From: Vojtěch Dvořák [mailto:vojtech_dvorak@servind.cz] Sent: Thursday, July 13, 2000 12:28 PM To: php-db@lists.php.net Subject: [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 --------------------------------------------------------- This message has been scanned for viruses by MIMESweeper. Wiadomosc zostala sprawdzona pod katem wirusow przez oprogramowanie MIMESweeper. --------------------------------------------------------- This message has been scanned for viruses by MIMESweeper. Wiadomosc zostala sprawdzona pod katem wirusow przez oprogramowanie MIMESweeper.

« previous php.db (#1097) next »