Jump to content

Archived

This topic is now archived and is closed to further replies.

kusal

help needed "alerts"

Recommended Posts

is there a way to give the user a alert message by using PHP5

eg:
in a inventory control system each product must be checked for there warranty expiration before 30 days,
if a warranty period expiers, the code must give a alert msg after login to the system.

thank you

kusal - sri lanka

Share this post


Link to post
Share on other sites
You can only bring up an alert message with javascript. You can probably do someting like this:
[code]if($item_warranty <= 30)
{
    echo '<script type="text/javascript">a lert("Warranty expires in 30days!");</script>';
}[/code]
Note, remove the space between the a and l in the code above.

Share this post


Link to post
Share on other sites
[!--quoteo(post=388414:date=Jun 27 2006, 05:09 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Jun 27 2006, 05:09 AM) [snapback]388414[/snapback][/div][div class=\'quotemain\'][!--quotec--]
You can only bring up an alert message with javascript. You can probably do someting like this:
[code]if($item_warrently <= 30)
{
    echo '<script type="text/javascript">a lert("Warrenty expires in 30days!");</script>';
}[/code]
Note, remove the space between the a and l in the code above.
[/quote]

umm... you realized its spelled "warranty", not "warrently" or "warrenty", right? [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.