|
|
|
ขอ code ในการทำ LOGOUT เเละ ทำลาย SESSION หน่อยคับ |
|
|
|
|
|
|
|
Code (PHP)
<?
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home</title>
<meta name="keywords" content="pink shop, store template, ecommerce, online shopping, CSS, HTML" />
<meta name="description" content="Pink Shop is a free ecommerce template provided by templatemo.com" />
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="stylesheet/styles.css" />
<script language="javascript" type="text/javascript">
function clearText(field)
{
if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;
}
</script>
<script language="javascript" type="text/javascript" src="scripts/mootools-1.2.1-core.js"></script>
<script language="javascript" type="text/javascript" src="scripts/mootools-1.2-more.js"></script>
<script language="javascript" type="text/javascript" src="scripts/slideitmoo-1.1.js"></script>
<script language="javascript" type="text/javascript">
window.addEvents({
'domready': function(){
/* thumbnails example , div containers */
new SlideItMoo({
overallContainer: 'SlideItMoo_outer',
elementScrolled: 'SlideItMoo_inner',
thumbsContainer: 'SlideItMoo_items',
itemsVisible: 5,
elemsSlide: 3,
duration: 200,
itemsSelector: '.SlideItMoo_element',
itemWidth: 140,
showControls:1});
},
});
</script>
</head>
<body>
<div id="templatemo_wrapper">
<div id="templatemo_menu">
<ul>
<li><a href="#" class="current"><span>.01</span>Home</a></li>
<li><a href="http://www.templatemo.com/page/1" target="_parent"><span>.02</span>Templates</a></li>
<li><a href="http://www.flashmo.com/page/1" target="_parent"><span>.03</span>Flash</a></li>
<li><a href="http://www.koflash.com" target="_parent"><span>.04</span>Gallery</a></li>
<li><a href="#"><span>.05</span>Webboard</a></li>
<li><a href="#"><span>.06</span>Contact</a></li>
</ul>
</div> <!-- end of templatemo_menu -->
<div id="templatemo_header_bar">
<div id="header"><div class="right"></div>
<h1><a href="#">
<img src="images/templatemo_logo.png" alt="Site Title" />
<span>Online Store Template</span>
</a></h1>
</div>
<div id="search_box">
<form action="#" method="get">
<input type="text" value="Enter keyword here..." name="q" size="10" id="searchfield" title="searchfield" onfocus="clearText(this)" onblur="clearText(this)" />
<input type="submit" name="Search" value="" alt="Search" id="searchbutton" title="Search" />
</form>
</div>
</div> <!-- end of templatemo_header_bar -->
<div class="cleaner"></div>
<div id="sidebar"><div class="sidebar_top"></div><div class="sidebar_bottom"></div>
<div class="sidebar_section">
<h2>Members</h2>
<form action="#" method="get">
<label></label>
<label><?= $_SESSION["s_name"] ?> <?= $_SESSION["s_last_n"] ?>
<br />
<embed src="http://www.clocklink.com/Clocks/5001-Blue.swf?TimeZone=GMT0700&DateFormat=DD-mm-YYYY" width="220" height="20" wmode="transparent" type="application/x-shockwave-flash">
<input type="submit" name="button" id="button" value="LOG OUT" />
<br />
</label>
</form>
</div>
<div class="sidebar_section">
<h2>Categories</h2>
<ul class="categories_list">
<li><a href="#">Books & Reference</a></li>
<li><a href="#">Business</a></li>
<li><a href="#">Comics</a></li>
<li><a href="#">Communication</a></li>
<li><a href="#">Education</a></li>
<li><a href="#">Entertainment</a></li>
<li><a href="#">Finance</a></li>
<li><a href="#">Health & Fitness</a></li>
<li><a href="#">Libraries & Demo</a></li>
<li><a href="#">Lifestyle</a></li>
<li><a href="#">Live Wallpaper</a></li>
<li><a href="#">Media & Video</a></li>
<li><a href="#">Medical</a></li>
<li><a href="#">Music & Audio</a></li>
<li><a href="#">News & Magazines</a></li>
<li><a href="#">Personalization</a></li>
<li><a href="#">Photography</a></li>
<li><a href="#">Productivity</a></li>
<li><a href="#">Shopping</a></li>
<li><a href="#">Social</a></li>
<li><a href="#">Sports</a></li>
<li><a href="#">Tools</a></li>
<li><a href="#">Transportation</a></li>
<li><a href="#">Travel & Local</a></li>
<li><a href="#">Weather</a></li>
<li><a href="#">Widgets</a></li>
</ul>
</div>
<div class="sidebar_section">
<h2> </h2>
<div class="image_wrapper"></div>
<div class="discount"><span>?</span></div>
</div>
</div> <!-- end of sidebar -->
<div id="templatmeo_content">
<div id="latest_product_gallery">
<h2>Featured Products</h2>
<div id="SlideItMoo_outer">
<div id="SlideItMoo_inner">
<div id="SlideItMoo_items">
<table width="651" height="160" border="1">
<tr>
<td><img name="" src="images/Android_2.jpg" width="642" height="151" alt="" /></td>
</tr>
</table>
<br />
<br />
<br />
<br />
<br />
<br />
</div>
<br />
<br />
<br />
<br />
</div>
</div>
</div> <!-- end of latest_content_gallery -->
<div class="content_section">
<h2>Welcome to App Store Thailand</h2>
<p> </p>
</div>
<div class="content_section">
<h2> </h2>
<div class="product_box margin_r35"><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<p class="price"> </p>
</div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</div>
</div>
<p>
<!-- end of templatmeo_content -->
</p>
<p>
</p>
</div> <!-- end of templatemo_wrapper -->
<div id="templatemo_footer_wrapper">
<div id="templatemo_footer">
<ul class="footer_menu">
<li><a href="#">Home</a></li>
<li><a href="http://www.templatemo.com/page/1" target="_parent">CSS Templates</a></li>
<li><a href="http://www.flashmo.com/page/1" target="_parent">Flash Resources</a></li>
<li><a href="#">Gallery</a></li>
<li><a href="#">Company</a></li>
<li class="last_menu"><a href="#">Contact</a></li>
</ul>
Copyright © 2048 <a href="#">Your Company Name</a> |
Designed by <a href="http://www.templatemo.com" target="_parent">Free CSS Templates</a> |
Validate <a href="http://validator.w3.org/check?uri=referer">XHTML</a> & <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
</div> <!-- end of footer -->
</div> <!-- end of footer_wrapper -->
</body>
</html>
Tag : PHP, WebService
|
|
|
|
|
|
Date :
2012-03-28 13:21:51 |
By :
ิbiggest59 |
View :
1879 |
Reply :
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
จาก Code จะต้องเเทรกตรงไหน ช่วยบอกผมหน่อยนะคับป๋ม
|
|
|
|
|
Date :
2012-03-28 13:22:24 |
By :
ิbiggest59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|