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