dillausky Posted August 8, 2007 Share Posted August 8, 2007 I know typically you can just close and re-open the php to insert some HTML, but I cant get that to work in this situation. define( "REG_FORM_HEAD_TITLE_USERDETAILS", "User Details" ); define( "REG_FORM_HEAD_NOTICE", "If you need help or have questions about our society/associations please feel free to contact your society or Premier via e-mail or call us at xxxx. We look forward to working with you."); define( "REG_FORM_HEAD_ATTENTION", "Required Fields marked with" ); define( "REG_FORM_FIRST_GROUP", "Your Details" ); in the REG_FORM_HEAD_NOTICE, i need to insert a hyperlink where it says email in the last line, but if I try to stop/start the php it just throws errors at me. Any help would be appreciated! Link to comment https://forums.phpfreaks.com/topic/63934-html-in-php/ Share on other sites More sharing options...
loony383 Posted August 8, 2007 Share Posted August 8, 2007 send the errors Link to comment https://forums.phpfreaks.com/topic/63934-html-in-php/#findComment-318673 Share on other sites More sharing options...
dillausky Posted August 8, 2007 Author Share Posted August 8, 2007 Parse error: syntax error, unexpected ';' in /home/.pancho/iratusfx/medbluebook1.com/administrator/components/com_juser/language/english.php on line 182 line 182 is define( "REG_FORM_HEAD_NOTICE", "If you need help or.... maybe i am just doing it wrong, here is how i did it: ...your society or Premier via e-mail" ?> <a href="mailto:[email protected]">[email protected]</a> <?php " or call us at xxxx. We look forward to working with you."); Link to comment https://forums.phpfreaks.com/topic/63934-html-in-php/#findComment-318677 Share on other sites More sharing options...
lemmin Posted August 8, 2007 Share Posted August 8, 2007 You can't stop a block and continue it in the middle of a function call. Assuming you are going to print out the REG_FORM_HEAD_NOTICE anyway, just leave the html tags in the string and when you print it, it will be recognized by the browser as html and show a link. Link to comment https://forums.phpfreaks.com/topic/63934-html-in-php/#findComment-318682 Share on other sites More sharing options...
dillausky Posted August 8, 2007 Author Share Posted August 8, 2007 hm yea i tried that but got Parse error: syntax error, unexpected T_STRING in /home/.pancho/iratusfx/medbluebook1.com/administrator/components/com_juser/language/english.php on line 182 ... then i realized i used "s instead of 's around the email! Thanks for the help Link to comment https://forums.phpfreaks.com/topic/63934-html-in-php/#findComment-318685 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.