timmy0320 Posted February 20, 2008 Share Posted February 20, 2008 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 More sharing options...
GameYin Posted February 20, 2008 Share Posted February 20, 2008 You can't put HTML in a popup. Link to comment https://forums.phpfreaks.com/topic/92062-no-html-allowed/#findComment-471487 Share on other sites More sharing options...
timmy0320 Posted February 20, 2008 Author Share Posted February 20, 2008 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 More sharing options...
timmy0320 Posted February 20, 2008 Author Share Posted February 20, 2008 I figured it out. I was using htmlspecialchar on the error reporting. Blah. Link to comment https://forums.phpfreaks.com/topic/92062-no-html-allowed/#findComment-471540 Share on other sites More sharing options...
GameYin Posted February 20, 2008 Share Posted February 20, 2008 Oh I'm sorry, I write responses on here normally at 5:30. Can't read at that time. Sorry. :-\ Link to comment https://forums.phpfreaks.com/topic/92062-no-html-allowed/#findComment-471608 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.