Jump to content

html in php


dillausky

Recommended Posts

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
Share on other sites

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:info@xxx.com">info@xx.com</a> <?php " or call us at xxxx. We look forward to working with you.");

Link to comment
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.