Solved

error as a picture

Posted on 2011-03-03
9
311 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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 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 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

Independent Software Vendors: 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

Suggested Solutions

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
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…

735 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