is value==$fname?> correct? the webpage dose not display the string stored
in $fname. Thanks!
e******y 发帖数: 19
2
it should be
try that!
【在 s*****r 的大作中提到】 : can some PHP guru take a look at following code: :
: size="30" maxlength="50" id="fname2">
: is value==$fname?> correct? the webpage dose not display the string stored : in $fname. Thanks!
s*****r 发帖数: 59
3
it only works when the string is not empty. if it is empty, then the string
after ?> got displayed. is there a way to use a variable represent the string,
and still get displayed correctly when the string is empty. thanks.
value==$fname?>
stored
【在 e******y 的大作中提到】 : it should be : try that!
P****y 发帖数: 707
4
dude, you need put quote before and after ?>
By the way, you'd better go over HTML before you learn PHP
【在 s*****r 的大作中提到】 : it only works when the string is not empty. if it is empty, then the string : after ?> got displayed. is there a way to use a variable represent the string, : and still get displayed correctly when the string is empty. thanks. : : value==$fname?> : stored
s*****r 发帖数: 59
5
this html code: value==$fname?>
I've put and after ?>, as I said, it only works when the string is not
empty. the problem is how could I get an empty string displayed correctly.
thanks.
string
string,
【在 P****y 的大作中提到】 : dude, you need put quote before and after ?> : By the way, you'd better go over HTML before you learn PHP
P****y 发帖数: 707
6
faint
value="=$fname?>"
" is called quote...
【在 s*****r 的大作中提到】 : this html code: value==$fname?> : I've put and after ?>, as I said, it only works when the string is not : empty. the problem is how could I get an empty string displayed correctly. : thanks. : : string : string,
P****y 发帖数: 707
7
and make sure to replace all " with \" in your $fname value
【在 P****y 的大作中提到】 : faint : value="=$fname?>" : " is called quote...