pixelfreak Posted August 2, 2015 Share Posted August 2, 2015 OK I am still in the learning process I am using a IDE php to build a small project I am trying to learn hand code.... my question is I want to echo a message here is my code it works great but I have to use the default error even on a success message so all errors or success end up the same color however I wanted to do a echo to show a success message //REDIRECT USER TO PASSWORD SENT CONFIRMATION PAGE $resetpass->Errors->addError("Request processed successfully. Please check your email."); $resetpass->email->SetValue(""); } else { $resetpass->Errors->addError("There is no account with that email address."); } } is there anyway to echo this statement $resetpass->message->echo("Request processed successfully. Please check your email."); Link to comment https://forums.phpfreaks.com/topic/297600-echo-message-help/ Share on other sites More sharing options...
ginerjm Posted August 2, 2015 Share Posted August 2, 2015 You are using a class here that you don't show us the details of so we can't tell you what you can do. If all you really want to do is echo a message then simply echo it. No need for a class for that. If you are just a beginner in learning PHP, how did you write a class like this already? Link to comment https://forums.phpfreaks.com/topic/297600-echo-message-help/#findComment-1517910 Share on other sites More sharing options...
pixelfreak Posted August 2, 2015 Author Share Posted August 2, 2015 as i stated I am using a php ide CCS Link to comment https://forums.phpfreaks.com/topic/297600-echo-message-help/#findComment-1517911 Share on other sites More sharing options...
ginerjm Posted August 3, 2015 Share Posted August 3, 2015 Actually, no you didn't. And your question merely asked how to echo something. Not knowing that you are apparently restricted in your programming options by your framework - tsk, tsk - I offered what I could. Link to comment https://forums.phpfreaks.com/topic/297600-echo-message-help/#findComment-1517937 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.