Hi guys,
I'm having trouble formatting a link to this line of PHP code:
What is the correct format for making the word, "register" a link with a title tag as well?Code:DEFINE("LANG_FORM_RESTRICTED","Please login or register to post comments.");
Hi guys,
I'm having trouble formatting a link to this line of PHP code:
What is the correct format for making the word, "register" a link with a title tag as well?Code:DEFINE("LANG_FORM_RESTRICTED","Please login or register to post comments.");
Steve Castaneda, Realtor
Keller Williams Realty
I can help you find houses for sale in Houston and also write at this blog dedicated to real estate technology for agents. I originally created this Houston Real Estate site and switched to REW - awesome decision.
There may be a little more to it since my PHP is largely self-taught, but I know that putting html tags inside PHP usually requires you to put backslashes in front of all the interior quote marks. I would try it like this:
If I'm missing some information here somebody please correct me, but I know I've had to do this before and it's at least partially right, it's just been a while.DEFINE("LANG_FORM_RESTRICTED","Please login or <a href=\"myfile.html\">register</a> to post comments.");
Code:DEFINE("LANG_FORM_RESTRICTED","Please login or <a href=\"register.php\" title=\"Register Here\">register</a> to post comments.");
Yeah, I didn't fill out the whole href tag, but at least I was on the right track. Use DCVegas's line Steve, it's more correct.
That worked great, thanks guys!
Just so I understand, the "\" character in PHP escapes the next character from being recognized in PHP, right? Or something like that? I know that the " character caused issues in the syntax since it is used elsewhere in this line of code.
Steve Castaneda, Realtor
Keller Williams Realty
I can help you find houses for sale in Houston and also write at this blog dedicated to real estate technology for agents. I originally created this Houston Real Estate site and switched to REW - awesome decision.
The backslash escapes double quotes in php - so php doesnt 'see' the double quotes, but only prints out the whole string constnat you defined.
© Copyright Real Estate Webmasters 2004-2010, All Rights Reserved. Terms of Service