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

Reply via email to