Jump to content


Photo

help needed "alerts"


  • Please log in to reply
3 replies to this topic

#1 kusal

kusal
  • Members
  • PipPipPip
  • Advanced Member
  • 36 posts
  • LocationSri Lanka - Colobmo

Posted 27 June 2006 - 09:01 AM

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
www.kuppiya.com

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 27 June 2006 - 09:09 AM

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

#3 DaveLinger

DaveLinger
  • Members
  • PipPipPip
  • Advanced Member
  • 268 posts
  • LocationWV, USA

Posted 27 June 2006 - 01:10 PM

[!--quoteo(post=388414:date=Jun 27 2006, 05:09 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Jun 27 2006, 05:09 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
You can only bring up an alert message with javascript. You can probably do someting like this:
if($item_warrently <= 30)
{
    echo '<script type="text/javascript">a lert("Warrenty expires in 30days!");</script>';
}
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\" /]
http://www.DaveLinger.com
dave at linger dot com

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 27 June 2006 - 02:49 PM

Oops, typo! All corrected




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users