Link to home
Start Free TrialLog in
Avatar of drsrs21
drsrs21

asked on

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

Avatar of drsrs21
drsrs21

ASKER

hello
Avatar of Paul MacDonald
if(user_save($data))
                  {
                        $message = "<img src='whatever' />";
                  }

Avatar of drsrs21

ASKER

i use that but when i modify the code the whole page doesn't load at all.
Avatar of drsrs21

ASKER

this is the modified code
if(user_save($data))
                  {
                        $message = "<img src='images/account_setting.png' alt="" />";
ASKER CERTIFIED SOLUTION
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of drsrs21

ASKER

i checked the page again worked out thanks.
Avatar of drsrs21

ASKER

thanks
Avatar of drsrs21

ASKER

and what if i want to use both. i mean a text message showing a picture beside?
if(user_save($data))
                  {
                        $message = "<img src='whatever' /><br /><span style='color:green'>Details updated</span>";
                  }