Date: 07/13/00
- Next message: Antonio Navarro Navarro: "[PHP-DB] PHP 4 and Interbase 6.0"
- Previous message: Zylski Marcin: "RE: [PHP-DB] Could be this less complicated?"
- Next in thread: Jean-Marc Libs: "Re: AW: [PHP-DB] Could be this less complicated?"
- Reply: Jean-Marc Libs: "Re: AW: [PHP-DB] Could be this less complicated?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>]
Gesendet: Donnerstag, 13. Juli 2000 12:28
An: php-db <email protected>
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 <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Antonio Navarro Navarro: "[PHP-DB] PHP 4 and Interbase 6.0"
- Previous message: Zylski Marcin: "RE: [PHP-DB] Could be this less complicated?"
- Next in thread: Jean-Marc Libs: "Re: AW: [PHP-DB] Could be this less complicated?"
- Reply: Jean-Marc Libs: "Re: AW: [PHP-DB] Could be this less complicated?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

