drsrs21
asked on
error as a picture
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'>Detail s updated</span>";
}
the original code is this
if(user_save($data))
{
$message = "<span style='color:green'>Detail
}
if(user_save($data))
{
$message = "<img src='whatever' />";
}
{
$message = "<img src='whatever' />";
}
ASKER
i use that but when i modify the code the whole page doesn't load at all.
ASKER
this is the modified code
if(user_save($data))
{
$message = "<img src='images/account_settin g.png' alt="" />";
if(user_save($data))
{
$message = "<img src='images/account_settin
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i checked the page again worked out thanks.
ASKER
thanks
ASKER
and what if i want to use both. i mean a text message showing a picture beside?
if(user_save($data))
{
$message = "<img src='whatever' /><br /><span style='color:green'>Detail s updated</span>";
}
{
$message = "<img src='whatever' /><br /><span style='color:green'>Detail
}
ASKER