|
Posted by frizzle on 03/01/06 16:29
Hi there,
i have a problem of wich i doubt it can be solved properly:
If i call a text from a (mySQL) database, and want to echo it into a
textfield (e.g. in a form) i experience the following problem (wich
makes sense, but wich i can't solve):
Imagine the following:
>> $db_string = 'The speech started as following: "Ladies and Gentlemen!".';
Source php:
>> <input name="textfield" type="text" value="<?php echo $db_string; ?>">
Source html:
>> <input name="textfield" type="text" value="The speech started as following: "Ladies and Gentlemen!".">
Wich only displays on the site:
>> The speech started as following:
Makes sense to me, but i cannot figure out how to solve it ...
(escaping with \" makes the backslash the last char)
Frizzle.
Navigation:
[Reply to this message]
|