[php]how to confirm deleting without using form.
	
    
    
	<html>
<head>
<script type="text/javascript">
<!--
function confirmDelete()
{
    return confirm("Are you sure you wish to delete this entry?");
}   
//-->
</script>
</head>
<body>
<% $var1 = 2;%>
<a href="?action=delete&id=<?=$var1?>" onclick="return confirmDelete();">
    Delete this entry
</a>
</body>
</html> 
B
TW: 
Line 14 is using PHP's short_open_tag which is not recommended, the formal tag should be <%php %>
Line 15 is using ASP-style <% %> tags.
Of couse you can use the PHP formal tag, the above code is simply to demostrate the other two tags.  
To enable short_open_tag and "<?" support in php, you need to modify php.ini, make sure enable below two attributes.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag = On
; Allow ASP-style <% %> tags.
; http://php.net/asp-tags
asp_tags = On
    
     
	
	
    
    
	Ïà¹ØÎĵµ£º
        
    
    ¼¯³ÉÅäÖÃ
      ÔÚÅäÖÃEclipse֮ǰ£¬Ê×ÏÈÐèÒªÒ»¸öApache+PHPµÄ»ù´¡»·¾³£¬
¡¡¡¡¿ÉÒÔ×°wampp»òphp home£¬ËüÃǶ¼ÊǼ¯³É»¯°²×°£¬±È½Ï·½±ã£¬ÏÂÔØµØÖ·ÈçÏ£º
¡¡¡¡wampp2.2
¡¡¡¡php home
¡¡¡¡
¡¡¡¡½¨Òé×°wampp2.2£¬¼¯³ÉApache,MySQL,Perl,PHP¡£¶øÇÒ½âѹËõ¾Í¿ÉÓã¬ÎÒ¾ÍÓÃËüͦ·½±ãµÄ¡£
¡¡¡¡ÏÂÃæÎÒ¾Í ......
	
    
        
    
    php config
1.°²×°Apache2.2
2.°²×°php5.2(×¢ÒâÑ¡ÔñËùÓеĿâÎļþ)
3.½«phpMyAdmin½âѹ£¬¿½±´ÖÁApache2.2\htdocs\phpmyadmin(¸Ã·¾¶¿ÉÒÔ×ÔÓɸıä)Ï¡£
4.ÐÞ¸ÄÅäÖÃÎļþ£º
 1)ÐÞ¸Äphp.ini
  ¾ßÌå²Ù×÷£º
  extension_dir = "C:\Program Files\PHP\ext"  (536)
  extension=php ......
	
    
        
    
    ×î½üÓÐÒ»¸öÏã¸ÛµÄ¾ÆµêÌá³öÐèÇó,Òªµ½¾ÆµêÒµÄÚµÄÉÌÎñÖÐÐÄʵÐмƷÑÉÏÍø, ÌṩÁËÈçϼ¼Êõ·½°¸:
1¡¢Éèһ̨CENTOS5µÄ»úÆ÷×öΪ·ÓÉ£¬°ÑÐèÒª¼Æ·ÑµÄ»úÆ÷¶¼ÉèΪÓô˷þÎñÆ÷×öÍø¹Ø¡£
2¡¢·þÎñÆ÷¿ªÆôIPTABLE£¬Í¨¹ýIPTABLE¿ØÖÆÄܲ»ÄÜʹÓû¥ÁªÍø¡£
¼Ç¼ÏÂÒÔϼ¼ÊõÒªµã:
Ò»¡¢ php¿ÉÒÔͨ¹ýshell_execÀ´Ö´ÐÐshellÖ¸Áµ«iptablesµÄÖ¸ÁîÊÇr ......
	
    
        
    
    Ê×ÏÈ˵×î¸ù±¾µÄ½â¾ö·½·¨£º
ÊÖ »ú·ÃÎÊʱ£¬»á¸½´ø·¢ËÍuser-agentÐÅÏ¢£¬Õâ¸öÐÅÏ¢ÀïÃæ»áÓÐÊÖ»úºÅÂëÐÅÏ¢£¬ÄÇôÈç¹ûÄÜÈ¡µÃÊÖ»úºÅÂ룬Ôò¿ÉÒԿ϶¨ÊÇͨ¹ýÊÖ»úwap·ÃÎʵġ£µ«ÊÇĿǰÖÐ ¹úÒÆ¶¯ÒѾÆÁ±ÎÁËuser-agentÐÅÏ¢£¬ËùÒÔ»ñÈ¡²»µ½ÊÖ»úºÅÂë¡£ÓйØÏµµÄÅóÓÑ¿ÉÒÔÁªÏµÒƶ¯¹«Ë¾£¬°ÑwapÍøÕ¾·þÎñÆ÷µÄipÌá½»¸øÖйúÒÆ¶¯£¬¼ÓÈë°×Ãûµ¥ ºó¼´¿ÉÈ¡µ ......