Jump to content

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
Link to comment
https://forums.phpfreaks.com/topic/13003-help-needed-alerts/
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.
Link to comment
https://forums.phpfreaks.com/topic/13003-help-needed-alerts/#findComment-50001
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\" /]
Link to comment
https://forums.phpfreaks.com/topic/13003-help-needed-alerts/#findComment-50070
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.