Jump to content

echo message help


pixelfreak

Recommended Posts

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

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

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.