Solved

error as a picture

Posted on 2011-03-03
9
312 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Creating and Managing Databases with phpMyAdmin in cPanel.
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…

732 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