Join Char Strings
| From: | Stephen Rivas Jr | Date: | Thu, 29 May 2003 02:43:07 +0000 |
| Subject: | Join Char Strings | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-20122@lists.php.net to get a copy of this message | ||
Again, looking in PHP.net for help - unable to proceed.
I'm trying to add a variable string, to another literal string and store it
in that variable again. I know it can be done, simply. However, I always
get "0" when I add them...
$rider_name += "<br>";
I want to take the information from my form, add some html, put in an
array - then write it to a file that looks good for printing.
How can I make a long string of HTML and then write in a variable, then
continue adding to my HTML string...like this:
$html_page_string = "<html><head><title>" + $page_title +
"</title></head><body>";
etc...And then later add to it after I've inserted my other variables and
HTML code:
$html_page_string += "</body></html>";
I think this can be done in JavaScript but ah....Can it in PHP? Thanks a ba
jillion.
Stephen Rivas Jr
stephen@throttlehead.com
http://www.throttlehead.com