|
Not logged in [Login - Register] |
You Are Not Registered Or Not Logged In |
Corsa Sport » Message Board » Off Day » Geek Day » php question - need more help :( » Post Reply
|
Dom |
posted on 22nd Jan 05 at 00:02 |
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. | |
Dom |
posted on 21st Jan 05 at 22:09 |
quote: tar mate, that actually solved a load of errors that came up :lol::lol: | |
Tim |
posted on 21st Jan 05 at 21:33 |
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)... | |
Dom |
posted on 21st Jan 05 at 21:33 |
quote: nice one boss :thumbs: | |
Laney |
posted on 21st Jan 05 at 21:32 |
quote: <font face="arial">$text</font> would be printed IIRC Try making it $html = "<font face='arial'>".$text."</font>" ? | |
Smiffie |
posted on 21st Jan 05 at 21:31 |
i know SFA about scripting dude | |
Dom |
posted on 21st Jan 05 at 21:28 |
quote: 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 :lol::lol: | |
Smiffie |
posted on 21st Jan 05 at 21:27 |
quote: sorry, i can't give u any kind of educated answer :( | |
Dom |
posted on 21st Jan 05 at 21:26 |
quote: hahahaha...im tired and not thinking right mate :lol: answer the question though :P | |
Smiffie |
posted on 21st Jan 05 at 21:24 |
change from ur last question :P | |
Dom |
posted on 21st Jan 05 at 21:22 |
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? |