kusal Posted June 27, 2006 Share Posted June 27, 2006 is there a way to give the user a alert message by using PHP5eg: 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 youkusal - sri lanka Link to comment https://forums.phpfreaks.com/topic/13003-help-needed-alerts/ Share on other sites More sharing options...
wildteen88 Posted June 27, 2006 Share Posted June 27, 2006 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 More sharing options...
DaveLinger Posted June 27, 2006 Share Posted June 27, 2006 [!--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 More sharing options...
wildteen88 Posted June 27, 2006 Share Posted June 27, 2006 Oops, typo! All corrected Link to comment https://forums.phpfreaks.com/topic/13003-help-needed-alerts/#findComment-50107 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.