i did read about it at php.net and in O'Reilly's book...

i had tried escaping the quotes, but it wasn't working. i have been fiddling with this for over an hour. i tried it again though and it's working now. other variables (items, not assigned values) have changed in my project throughout this though, so i'm not sure if it just wasn't working or if something else was affecting it.

one thing i'm pretty sure that i change was what i was using to call in an include full of these variables. before, it was "@readfile" and now it is "include"

On Thursday, March 20, 2003, at 04:16 PM, David Smith wrote:


Wade Preston Shearer wrote:


how do you put a quote inside a variable in PHP?

$variable = "Please click <a href="page.html">here</a>to proceed.";

...does not work because it stops when it gets to the second quote, outputting the variable as...

Like this:


$variable = "Please click <a href=\"page.html\">here</a>to proceed.";

You can read all about it on the PHP website: http://www.php.net/manual/en/language.types.string.php
Or in O'Reilly's _Programming PHP_


--Dave






____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list




____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to