[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

error as a picture

Posted on 2011-03-03
9
Medium Priority
?
319 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 34

Expert Comment

by:Paul MacDonald
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:drsrs21
ID: 35030643
this is the modified code
if(user_save($data))
                  {
                        $message = "<img src='images/account_setting.png' alt="" />";
0
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 2000 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 34

Expert Comment

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

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What we learned in Webroot's webinar on multi-vector protection.
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

873 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