Solved

error as a picture

Posted on 2011-03-03
9
307 Views
Last Modified: 2012-05-11
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
Comment
Question by:drsrs21
  • 6
  • 3
9 Comments
 

Author Comment

by:drsrs21
ID: 35030505
hello
0
 
LVL 33

Expert Comment

by:paulmacd
ID: 35030516
if(user_save($data))
                  {
                        $message = "<img src='whatever' />";
                  }

0
 

Author Comment

by:drsrs21
ID: 35030546
i use that but when i modify the code the whole page doesn't load at all.
0
 

Author Comment

by:drsrs21
ID: 35030643
this is the modified code
if(user_save($data))
                  {
                        $message = "<img src='images/account_setting.png' alt="" />";
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 33

Accepted Solution

by:
paulmacd earned 500 total points
ID: 35030690
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
 

Author Comment

by:drsrs21
ID: 35030702
i checked the page again worked out thanks.
0
 

Author Closing Comment

by:drsrs21
ID: 35030713
thanks
0
 

Author Comment

by:drsrs21
ID: 35030783
and what if i want to use both. i mean a text message showing a picture beside?
0
 
LVL 33

Expert Comment

by:paulmacd
ID: 35031553
if(user_save($data))
                  {
                        $message = "<img src='whatever' /><br /><span style='color:green'>Details updated</span>";
                  }

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Database tuning – How to start and what to tune. This question is frequently asked by many people, both online and offline. There is no hard and fast rule-of-thumb for performance tuning, however, before beginning the tuning process one should a…
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now