Solved

error as a picture

Posted on 2011-03-03
9
308 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
 

Author Comment

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

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Client backup and data retention? 3 54
SQL, Updating Statistics take too long for 60GB database 5 104
Best RAID for a BDD Oracle 4 62
Error when loading the database 16 57
In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…

920 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

14 Experts available now in Live!

Get 1:1 Help Now