error as a picture

hello i have a form and i wanna show the error of the form as a picture not a message.
the original code is this
if(user_save($data))
                  {
                        $message = "<span style='color:green'>Details updated</span>";
                  }

drsrs21Asked:
Who is Participating?
 
Paul MacDonaldDirector, Information SystemsCommented:
Hmm.  There's no obvious reason that wouldn't work.  Maybe wrap the whole thing in a span?  Are you sure the image you want to use exists and that you're pointing to it correctly?

if(user_save($data))
                  {
                        $message = "<span><img src='whatever' /></span>";
                  }

0
 
drsrs21Author Commented:
hello
0
 
Paul MacDonaldDirector, Information SystemsCommented:
if(user_save($data))
                  {
                        $message = "<img src='whatever' />";
                  }

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
drsrs21Author Commented:
i use that but when i modify the code the whole page doesn't load at all.
0
 
drsrs21Author Commented:
this is the modified code
if(user_save($data))
                  {
                        $message = "<img src='images/account_setting.png' alt="" />";
0
 
drsrs21Author Commented:
i checked the page again worked out thanks.
0
 
drsrs21Author Commented:
thanks
0
 
drsrs21Author Commented:
and what if i want to use both. i mean a text message showing a picture beside?
0
 
Paul MacDonaldDirector, Information SystemsCommented:
if(user_save($data))
                  {
                        $message = "<img src='whatever' /><br /><span style='color:green'>Details updated</span>";
                  }

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.