Dom
Member
Registered: 13th Sep 03
User status: Offline
|
if i had a php string, $html = "<font face=""arial"">$text</font>";, and i assinged hello to $text, would it get printed if i did an echo of $html?
i know this is basic, but i cant find anything by doing a google abit this 
tar,
Dom 
Edit - new question at bottom 
[Edited on 22-01-2005 by Dom]
|
Smiffie
Member
Registered: 26th Feb 04
User status: Offline
|
change from ur last question
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
quote: Originally posted by Smiffie
change from ur last question
hahahaha...im tired and not thinking right mate 
answer the question though
|
Smiffie
Member
Registered: 26th Feb 04
User status: Offline
|
quote: Originally posted by Dom
quote: Originally posted by Smiffie
change from ur last question
hahahaha...im tired and not thinking right mate 
answer the question though
sorry, i can't give u any kind of educated answer
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
quote: Originally posted by Smiffie
quote: Originally posted by Dom
quote: Originally posted by Smiffie
change from ur last question
hahahaha...im tired and not thinking right mate 
answer the question though
sorry, i can't give u any kind of educated answer
GTF then you dumbass biatch ...no really, you dont know?? its doing my head it and i cant be asked to try it out because i know my current script is gonna chuck out errors all over the place 
|
Smiffie
Member
Registered: 26th Feb 04
User status: Offline
|
i know SFA about scripting dude
|
Laney
Member
Registered: 6th May 03
Location: Leeds
User status: Offline
|
quote: Originally posted by Dom
if i had a php string, $html = "<font face=""arial"">$text</font>";, and i assinged hello to $text, would it get printed if i did an echo of $html?
i know this is basic, but i cant find anything by doing a google abit this 
tar,
Dom
<font face="arial">$text</font> would be printed IIRC
Try making it $html = "<font face='arial'>".$text."</font>" ?
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
quote: Originally posted by Laney
quote: Originally posted by Dom
if i had a php string, $html = "<font face=""arial"">$text</font>";, and i assinged hello to $text, would it get printed if i did an echo of $html?
i know this is basic, but i cant find anything by doing a google abit this 
tar,
Dom
<font face="arial">$text</font> would be printed IIRC
Try making it $html = "<font face='arial'>".$text."</font>" ?
nice one boss
|
Tim
Site Administrator
Registered: 21st Apr 00
User status: Offline
|
Yes... but you really should either escape the double quotes with a backslash, or just use single quotes (so it gets processed correctly and is a bit more readable)...
ie. $html = "<font face='Arial'>$text</font>";
or
$html = "<font face=\"Arial\">$text</font>";
[Edited on 21-01-2005 by Tim]
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
quote: Originally posted by Tim
Yes... but you really should either escape the double quotes with a backslash, or just use single quotes (so it gets processed correctly and is a bit more readable)...
ie. $html = "<font face='Arial'>$text</font>";
or
$html = "<font face=\"Arial\">$text</font>";
[Edited on 21-01-2005 by Tim]
tar mate, that actually solved a load of errors that came up 
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
right have a string with html code in it (ie :$string = "<font face=\"$strFace"\>", have also tried "face="" . $strFace . "\ etc) and basically when i call it up later to change the the value of $strFace (ie: $strFace = "Arial";, echo $string , it doesnt seem to change the $strFace value in $string.
Anyone no how to solve this? 
only solution i can think of is to split the $string into two and then wack the changing value inbetween the two split strings when outputed etc etc - but there must be another way 
tar,
Dom 
[Edited on 22-01-2005 by Dom]
|