Jump to content

No HTML allowed?


timmy0320

Recommended Posts

define("LINK_INVALID", "You have followed an invalid link. Return to our <a href=\"".LINK_HOMEPAGE."\">homepage</a>.");

 

 

Can I not define HTML or something? Because it is posting on my page as <.a href="index.php">homepage<./a> 

 

Without the periods in the link of course.

Link to comment
https://forums.phpfreaks.com/topic/92062-no-html-allowed/
Share on other sites

Popup? I'm declaring a constant for invalid links. And on my pages I have something such as, so if the user tries to access a page that is only accessible to users or other things. I'll use my account activation as the example. If the user tries to manually type in their browser index.php?p=act they will get an invalid link error. The constant LINK_INVALID which I declared in my constants.php file is supposed to show on the page. I don't understand what you mean by popup.

 

                // if user follows an invalid link
                $field = "msg";
                $function_form->setValue($field, LINK_INVALID);
                return false;

Link to comment
https://forums.phpfreaks.com/topic/92062-no-html-allowed/#findComment-471516
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.