Originally Posted by KaliK
That works! Wonderful! I'm not sure how the periods and semicolons work in the php. I would like to learn the process so that I can use it elsewhere later...
It seems you closed out the html with single quotes and used the period to append the php and then reversed the process to append the html. Am I right?
This is great, Thank you sooooo much!!
any string can be delimited by ' or by " the difference is how variables, if exists in the string, are evaluated to build the resulting string.
I don't think there are rules when you need to use one or anothers, i usualy use ' as delimiter because i always use " in html. Also i prefere to not use variables inside a string( split the string in pieces arround variables and concatenate).
in this specific case i tried to avoid to use <?php and ?> and to make if tests simpler by using ternary operator ?:.