• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

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>";
                  }

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

0
 
drsrs21Author Commented:
i use that but when i modify the code the whole page doesn't load at all.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
drsrs21Author Commented:
this is the modified code
if(user_save($data))
                  {
                        $message = "<img src='images/account_setting.png' alt="" />";
0
 
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:
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now