<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>CodingForums.com</title>
		<link>http://www.codingforums.com/</link>
		<description>Web coding and development forums. Get help on JavaScript, PHP, CGI, CSS, XML, and more.</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 00:32:00 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.codingforums.com/images/misc/rss.jpg</url>
			<title>CodingForums.com</title>
			<link>http://www.codingforums.com/</link>
		</image>
		<item>
			<title>live chat support website</title>
			<link>http://www.codingforums.com/showthread.php?t=182638&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 23:06:50 GMT</pubDate>
			<description><![CDATA[Hi  
 
I've been glazing websites for quite sometime now but this is my first post here.... 
 
Please review my website.We are a vendor who offers a unique service, we are offering live 24-hour chat support on company websites. We don&#8217;t just offer the software; we also do the customer service work...]]></description>
			<content:encoded><![CDATA[<div>Hi <br />
<br />
I've been glazing websites for quite sometime now but this is my first post here....<br />
<br />
Please review my website.We are a vendor who offers a unique service, we are offering live 24-hour chat support on company websites. We don&#8217;t just offer the software; we also do the customer service work for our clients. <br />
<br />
I would like to hear what you think about it.<br />
Any constructive comments will be welcomed.<br />
<br />
The site can be viewed at <a href="http://live247Support.com" target="_blank">http://live247Support.com</a></div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=37">Site reviews</category>
			<dc:creator>live247support</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182638</guid>
		</item>
		<item>
			<title>Rankbar from data</title>
			<link>http://www.codingforums.com/showthread.php?t=182637&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 23:01:59 GMT</pubDate>
			<description><![CDATA[i have some data which is being fetched however i would like a rankbar to be made from this. 
 
 
PHP: 
--------- 
 <? if ($rankbar==1){  
  
if ($rankpoints < "400"){ $amount="400"; $check="1";} 
elseif ($rankpoints < "1230"){ $amount="1230"; $check="400";} 
elseif ($rankpoints < "2000"){...]]></description>
			<content:encoded><![CDATA[<div>i have some data which is being fetched however i would like a rankbar to be made from this.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
&nbsp;<span style="color: #0000BB">&lt;?&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$rankbar</span><span style="color: #007700">==</span><span style="color: #0000BB">1</span><span style="color: #007700">){&nbsp;<br />&nbsp;<br />if&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"400"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"400"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"1"</span><span style="color: #007700">;}<br />elseif&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"1230"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"1230"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"400"</span><span style="color: #007700">;}<br />elseif&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"2000"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"2000"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"1230"</span><span style="color: #007700">;}<br />elseif&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"4320"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"4320"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"2000"</span><span style="color: #007700">;}<br />elseif&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"8600"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"8600"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"4320"</span><span style="color: #007700">;}<br />elseif&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"15506"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"15506"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"8600"</span><span style="color: #007700">;}<br />elseif&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"22361"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"22361"</span><span style="color: #007700">;&nbsp;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"15506"</span><span style="color: #007700">;}<br />elseif&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"36000"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"36000"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"22361"</span><span style="color: #007700">;}<br />elseif&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"65333"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"65333"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"36000"</span><span style="color: #007700">;}<br />elseif&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"83216"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"83216"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"65333"</span><span style="color: #007700">;}<br />elseif&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"99633"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"99633"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"83216"</span><span style="color: #007700">;}<br />elseif&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"120000"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"120000"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"99633"</span><span style="color: #007700">;}<br />elseif&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"163000"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"163000"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"120000"</span><span style="color: #007700">;}<br />elseif&nbsp;(</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">&lt;&nbsp;</span><span style="color: #DD0000">"230000"</span><span style="color: #007700">){&nbsp;</span><span style="color: #0000BB">$amount</span><span style="color: #007700">=</span><span style="color: #DD0000">"230000"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">=</span><span style="color: #DD0000">"163000"</span><span style="color: #007700">;}<br /><br /><br /></span><span style="color: #FF8000">///&nbsp;total&nbsp;rankpoints&nbsp;-&nbsp;rankpoints&nbsp;required&nbsp;for&nbsp;current&nbsp;rank&nbsp;/&nbsp;rank&nbsp;points&nbsp;needed&nbsp;for&nbsp;next&nbsp;rank&nbsp;*&nbsp;100<br /><br /></span><span style="color: #0000BB">$end&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$amount&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">;&nbsp;<br /><br /></span><span style="color: #0000BB">$percent&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$rankpoints&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">$check</span><span style="color: #007700">;&nbsp;<br /><br /></span><span style="color: #0000BB">$percent&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$percent&nbsp;</span><span style="color: #007700">/&nbsp;</span><span style="color: #0000BB">$end</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$add&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$percent&nbsp;</span><span style="color: #007700">*&nbsp;</span><span style="color: #0000BB">100</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$nextrank&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">round</span><span style="color: #007700">(</span><span style="color: #0000BB">$add</span><span style="color: #007700">);<br /><br />&nbsp;</span><span style="color: #0000BB">?&gt;</span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>any help will be helpful</div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=6">PHP</category>
			<dc:creator>trixx</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182637</guid>
		</item>
		<item>
			<title><![CDATA[How can i pass a <select> value to php page]]></title>
			<link>http://www.codingforums.com/showthread.php?t=182636&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 22:57:10 GMT</pubDate>
			<description><![CDATA[ok i have auto complete that i want to be able to select a column of the database before searching on it 
i just want to pass the oneone variable over to the php page.  
 
so i have this  javascript 
 
 
Code: 
--------- 
<script type="text/javascript"> 
$().ready(function() {]]></description>
			<content:encoded><![CDATA[<div>ok i have auto complete that i want to be able to select a column of the database before searching on it<br />
i just want to pass the oneone variable over to the php page. <br />
<br />
so i have this  javascript<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;script type=&quot;text/javascript&quot;&gt;<br />
$().ready(function() {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; function log(event, data, formatted) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;&lt;li&gt;&quot;).html( !data ? &quot;No match!&quot; : &quot;Selected: &quot; + formatted).appendTo(&quot;#result&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#search&quot;).autocomplete(&quot;test.php&quot;, {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width: 260,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; selectFirst: false<br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#search&quot;).result(function(event, data, formatted) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (data)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(this).parent().next().find(&quot;input&quot;).val(data[1]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
$(&quot;:text, textarea&quot;).result(log).next().click(function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(this).prev().search(); // shows resluts<br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
<br />
});<br />
<br />
<br />
&lt;/script&gt;</code><hr />
</div>the html <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &nbsp; &nbsp; &lt;p class=&quot;field&quot; &gt; &lt;select id=&quot;oneone&quot; name=&quot;oneone&quot; style=&quot;width:100px;margin:5px 0 5px 0;&quot; value=&quot;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;s_last&quot;&gt;Last Name&lt;/option&gt;<br />
&lt;option value=&quot;s_first&quot;&gt;First Name&lt;/option&gt;<br />
<br />
&lt;label&gt;Search&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; id=&quot;search&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;Hidden input&lt;/label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input&nbsp; type=&quot;text&quot; id=&quot;inputit&quot; /&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=2">JavaScript programming</category>
			<dc:creator>codingForumsFTW</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182636</guid>
		</item>
		<item>
			<title>Header Sent</title>
			<link>http://www.codingforums.com/showthread.php?t=182635&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 22:30:29 GMT</pubDate>
			<description><![CDATA[i am getting an error but can't seem to find the problem. Anyone's help will be appreciated. This is the code 
 
 
PHP: 
--------- 
<?php 
$dbhost = 'dbhost'; 
$dbuser = 'dbuser'; 
$dbpass = 'dbpass';]]></description>
			<content:encoded><![CDATA[<div>i am getting an error but can't seem to find the problem. Anyone's help will be appreciated. This is the code<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$dbhost&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'dbhost'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$dbuser&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'dbuser'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$dbpass&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'dbpass'</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$conn&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">$dbhost</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$dbuser</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$dbpass</span><span style="color: #007700">)&nbsp;or&nbsp;die&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(</span><span style="color: #DD0000">'Error&nbsp;connecting&nbsp;to&nbsp;mysql'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$dbname&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'dbname'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">mysql_select_db</span><span style="color: #007700">(</span><span style="color: #0000BB">$dbname</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">Warning</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">Cannot&nbsp;modify&nbsp;header&nbsp;information&nbsp;</span><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">headers&nbsp;already&nbsp;sent&nbsp;by&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">output&nbsp;started&nbsp;at&nbsp;</span><span style="color: #007700">/</span><span style="color: #0000BB">home</span><span style="color: #007700">/</span><span style="color: #0000BB">www</span><span style="color: #007700">/</span><span style="color: #0000BB">m</span><span style="color: #007700">-</span><span style="color: #0000BB">assassins</span><span style="color: #007700">.</span><span style="color: #0000BB">awardspace</span><span style="color: #007700">.</span><span style="color: #0000BB">us</span><span style="color: #007700">/</span><span style="color: #0000BB">includes</span><span style="color: #007700">/</span><span style="color: #0000BB">db_connect</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">:</span><span style="color: #0000BB">12</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">in&nbsp;</span><span style="color: #007700">/</span><span style="color: #0000BB">home</span><span style="color: #007700">/</span><span style="color: #0000BB">www</span><span style="color: #007700">/</span><span style="color: #0000BB">m</span><span style="color: #007700">-</span><span style="color: #0000BB">assassins</span><span style="color: #007700">.</span><span style="color: #0000BB">awardspace</span><span style="color: #007700">.</span><span style="color: #0000BB">us</span><span style="color: #007700">/</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php&nbsp;on&nbsp;line&nbsp;57&nbsp;<br /></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>INDEX PAGE <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />session_start</span><span style="color: #007700">();<br />include_once(</span><span style="color: #DD0000">"includes/db_connect.php"</span><span style="color: #007700">);<br />if&nbsp;(</span><span style="color: #0000BB">strip_tags</span><span style="color: #007700">(</span><span style="color: #0000BB">$_GET</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'logout'</span><span style="color: #007700">&#93;)&nbsp;==&nbsp;</span><span style="color: #DD0000">"yes"</span><span style="color: #007700">){<br /></span><span style="color: #0000BB">session_destroy</span><span style="color: #007700">();<br />}elseif&nbsp;(isset(</span><span style="color: #0000BB">$_SESSION</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'real_name'</span><span style="color: #007700">&#93;)){<br /></span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">"Location:&nbsp;Updates.php"</span><span style="color: #007700">);<br />exit();<br />}<br /><br /><br />if&nbsp;(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'Submit'</span><span style="color: #007700">&#93;&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">strip_tags</span><span style="color: #007700">(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'username'</span><span style="color: #007700">&#93;)&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">strip_tags</span><span style="color: #007700">(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'password'</span><span style="color: #007700">&#93;)){<br /></span><span style="color: #0000BB">$username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'username'</span><span style="color: #007700">&#93;;&nbsp;<br /></span><span style="color: #0000BB">$password&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'password'</span><span style="color: #007700">&#93;;<br /></span><span style="color: #0000BB">$username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">strip_tags</span><span style="color: #007700">(</span><span style="color: #0000BB">$username</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$password&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">strip_tags</span><span style="color: #007700">(</span><span style="color: #0000BB">$password</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$ip&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$REMOTE_ADDR</span><span style="color: #007700">;<br /><br /><br /></span><span style="color: #0000BB">$date&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">gmdate</span><span style="color: #007700">(</span><span style="color: #DD0000">'Y-m-d&nbsp;h:i:s'</span><span style="color: #007700">);<br /><br /><br /></span><span style="color: #FF8000">///check&nbsp;INFO<br /></span><span style="color: #0000BB">$sql&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;*&nbsp;FROM&nbsp;users&nbsp;WHERE&nbsp;username='$username'&nbsp;AND&nbsp;password='$password'&nbsp;LIMIT&nbsp;1"</span><span style="color: #007700">);&nbsp;<br /></span><span style="color: #0000BB">$login_check&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_num_rows</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">);&nbsp;<br /></span><span style="color: #0000BB">$inf&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_fetch_object</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">);&nbsp;<br /><br />if&nbsp;(</span><span style="color: #0000BB">$login_check&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #DD0000">"0"</span><span style="color: #007700">){<br />if&nbsp;(</span><span style="color: #0000BB">$inf</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">status&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">"Dead"</span><span style="color: #007700">){<br />include_once</span><span style="color: #DD0000">"dead.php"</span><span style="color: #007700">;<br />exit();<br /><br /></span><span style="color: #0000BB">$timenow</span><span style="color: #007700">=</span><span style="color: #0000BB">time</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$online&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">time</span><span style="color: #007700">()&nbsp;-&nbsp;</span><span style="color: #0000BB">300</span><span style="color: #007700">;&nbsp;</span><span style="color: #FF8000">//the&nbsp;current&nbsp;time&nbsp;minus&nbsp;300&nbsp;seconds<br /></span><span style="color: #0000BB">$select&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;*&nbsp;FROM&nbsp;users&nbsp;WHERE&nbsp;onlinetime2&nbsp;&gt;='$online'&nbsp;AND&nbsp;online='Online'&nbsp;ORDER&nbsp;by&nbsp;id&nbsp;ASC"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$num&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_num_rows</span><span style="color: #007700">(</span><span style="color: #0000BB">$select</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$numfor</span><span style="color: #007700">=</span><span style="color: #0000BB">number_format</span><span style="color: #007700">(</span><span style="color: #0000BB">$num</span><span style="color: #007700">);<br /><br />}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">session_register</span><span style="color: #007700">(</span><span style="color: #DD0000">'username'</span><span style="color: #007700">);&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$_SESSION</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'real_name'</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">$inf</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">username</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$_SESSION</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">"userlevel"</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">$inf</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">userlevel</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$_SESSION</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">"crewlevel"</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">$inf</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">crewlevel</span><span style="color: #007700">;<br /><br /><br /></span><span style="color: #0000BB">$realip&nbsp;</span><span style="color: #007700">=&nbsp;isset(</span><span style="color: #0000BB">$_SERVER</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'HTTP_X_FORWARDED_FOR'</span><span style="color: #007700">&#93;)&nbsp;?<br /></span><span style="color: #0000BB">$_SERVER</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'HTTP_X_FORWARDED_FOR'</span><span style="color: #007700">&#93;&nbsp;:&nbsp;</span><span style="color: #0000BB">$_SERVER</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'REMOTE_ADDR'</span><span style="color: #007700">&#93;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$time2&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">time</span><span style="color: #007700">();&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$timestamp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">time</span><span style="color: #007700">()+</span><span style="color: #0000BB">60</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"UPDATE&nbsp;users&nbsp;SET&nbsp;online='Online',&nbsp;onlinetime2='$time2'&nbsp;WHERE&nbsp;username='$username'"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"INSERT&nbsp;INTO&nbsp;`logs`&nbsp;(&nbsp;`id`&nbsp;,&nbsp;`who`&nbsp;,&nbsp;`action`&nbsp;,&nbsp;`date`&nbsp;,&nbsp;`ip`&nbsp;)&nbsp;VALUES&nbsp;('',&nbsp;'$username',&nbsp;'Logged&nbsp;In!',&nbsp;'$date',&nbsp;'$realip')"</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">"Location:&nbsp;News.php"</span><span style="color: #007700">);&nbsp;<br />&nbsp;&nbsp;&nbsp;<br />}&nbsp;else&nbsp;{&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$message</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"You&nbsp;could&nbsp;not&nbsp;be&nbsp;logged&nbsp;in.&lt;br&nbsp;/&gt;"</span><span style="color: #007700">;<br /><br />}}<br /></span><span style="color: #0000BB">?&gt;<br /></span>&nbsp;<br />&lt;html&gt;<br />&nbsp;&nbsp;&lt;head&gt;<br />&nbsp;&nbsp;&lt;meta&nbsp;http-equiv="content-type"&nbsp;content="text/html;&nbsp;charset=iso-8859-1"&gt;<br />&lt;link&nbsp;REL="SHORTCUT&nbsp;ICON"&nbsp;type="image/ico"&nbsp;HREF="icon&nbsp;here"&gt;<br />&nbsp;&nbsp;&lt;meta&nbsp;name="author"&nbsp;content="Bigharry"&gt;<br />&nbsp;&nbsp;&lt;title&gt;Mafia-Assassins&lt;/title&gt;<br />&nbsp;&nbsp;&lt;link&nbsp;href="site_css.css"&nbsp;rel="stylesheet"&nbsp;type="text/css"&gt;<br />&lt;script&nbsp;src="clienthint.js"&gt;&lt;/script&gt;&nbsp;<br />&nbsp;&nbsp;&lt;/head&gt;<br /><br />&lt;body&nbsp;bgcolor="black"&nbsp;OnLoad="document.login.mail.focus();"&gt;<br />&lt;div&nbsp;align="center"&gt;<br /><br />&nbsp;&nbsp;&lt;strong&gt;&lt;font&nbsp;color='red'&nbsp;face='verdana'&nbsp;size='1'&gt;&nbsp;&lt;br&gt;<br />&nbsp;&nbsp;&lt;br&gt;<br />&nbsp;&nbsp;&lt;/font&gt;&lt;/strong&gt;<br />&nbsp;&nbsp;&lt;table&nbsp;width="965"&nbsp;border="0"&nbsp;cellspacing="0"&nbsp;cellpadding="0"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;valign="bottom"&gt;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;table&nbsp;width="965"&nbsp;border="0"&nbsp;cellspacing="0"&nbsp;cellpadding="0"&gt;<br />&nbsp;&nbsp;&lt;tr&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;width="349"&nbsp;valign="bottom"&gt;<br />&lt;table&nbsp;width="349"&nbsp;border="0"&nbsp;cellspacing="0"&nbsp;cellpadding="0"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;width="23"&gt;&lt;div&nbsp;align="center"&gt;&lt;img&nbsp;src="banner.jpg"&nbsp;width="966"&nbsp;height="168"&gt;&lt;/div&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/table&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&lt;/tr&gt;<br />&lt;/table&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;table&nbsp;width="965"&nbsp;border="0"&nbsp;cellspacing="0"&nbsp;cellpadding="0"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;width="200"&nbsp;valign="top"&nbsp;class="home-side"&gt;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;br&gt;<br />&lt;br&gt;&nbsp;&nbsp;<br />&lt;div&nbsp;class="brown"&gt;&lt;center&gt;Major&nbsp;Updates&lt;/center&gt;&lt;/div&gt;&nbsp;<br />&lt;div&nbsp;align="left"&nbsp;class="mafia-game"&gt;<br />&lt;li&gt;Refferal&nbsp;System&nbsp;has&nbsp;been&nbsp;fixed&nbsp;and&nbsp;updated.&lt;br&gt;&lt;br&gt;<br /><br />&lt;li&gt;The&nbsp;game&nbsp;layout&nbsp;has&nbsp;been&nbsp;slightly&nbsp;updated.&lt;br&gt;&lt;br&gt;<br />&lt;li&gt;A&nbsp;blackjack&nbsp;casino&nbsp;is&nbsp;being&nbsp;made.&lt;br&gt;&lt;br&gt;<br />&lt;/div&gt;<br /><br /><br /><br /><br />&lt;div&nbsp;align="left"&nbsp;class="mafia-game"&gt;<br />&lt;/div&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;valign="top"&gt;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;table&nbsp;border="0"&nbsp;cellspacing="0"&nbsp;cellpadding="0"&nbsp;width="565"&nbsp;height="302"&nbsp;class="home-pic1"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;height="270"&nbsp;valign="top"&gt;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;table&nbsp;width="100%"&nbsp;border="0"&nbsp;cellpadding="0"&nbsp;cellspacing="0"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;height="168"&nbsp;valign="top"&gt;&nbsp;&lt;br&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&nbsp;class="home-text"&gt;&lt;br&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;br&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;href="Register2.php"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/a&gt;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;font&nbsp;size="-2"&gt;&lt;/font&gt;&lt;/p&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;strong&gt;&lt;font&nbsp;color='red'&nbsp;face='verdana'&nbsp;size='1'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;<br /><br />&nbsp;&nbsp;&lt;/tr&gt;<br />&nbsp;&nbsp;&lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;valign="bottom"&gt;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&lt;table&nbsp;width="100%"&nbsp;border="0"&nbsp;cellspacing="0"&nbsp;cellpadding="0"&gt;<br />&nbsp;&nbsp;&lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;<br /><br />&nbsp;&lt;form&nbsp;id="form1"&nbsp;name="form1"&nbsp;method="post"&nbsp;action="index.php"&gt;<br /><br /><br /><br />&lt;div&nbsp;style="padding:&nbsp;10px&nbsp;0&nbsp;0&nbsp;400px;"&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;name="username"&nbsp;type="text"&nbsp;class="input-home"&nbsp;id="username"&nbsp;size="15"&nbsp;maxlength="35"&gt;<br /><br />&lt;br&gt;<br />&lt;br&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;name="password"&nbsp;type="password"&nbsp;id="password2"&nbsp;class="input-home"&nbsp;size="15"&nbsp;maxlength="35"&gt;<br />&lt;br&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type="submit"&nbsp;name="Submit"&nbsp;value="Login"&gt;<br />&lt;/div&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/form&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br /><br />&nbsp;&nbsp;&lt;/tr&gt;<br />&lt;/table&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&lt;/tr&gt;<br /><br />&lt;/table&gt;<br />&lt;br&gt;<br />&lt;br&gt;<br />&lt;br&gt;<br />&lt;br&gt;<br />&lt;br&gt;<br />&lt;center&gt;<br />&lt;body&nbsp;style="margin:&nbsp;0px"&nbsp;bgcolor="black"&nbsp;vlink="black"&nbsp;alink="black"&gt;<br /><br />&lt;/body&gt;&lt;/center&gt;<br />&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;width="200"&nbsp;valign="top"&nbsp;class="home-side"&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&lt;div&nbsp;class="mafia-game"&gt;<br />&lt;br&gt;<br /><br />&lt;div&nbsp;class="brown"&gt;Need&nbsp;help&nbsp;playing?&lt;/div&gt;&lt;br&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;We&nbsp;have&nbsp;added&nbsp;a&nbsp;guide&nbsp;to&nbsp;help&nbsp;new&nbsp;users&nbsp;to&nbsp;the&nbsp;game&nbsp;or&nbsp;users&nbsp;that&nbsp;are&nbsp;new&nbsp;to&nbsp;the&nbsp;mafia&nbsp;life.&lt;br&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;strong&gt;&lt;br&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/strong&gt;&lt;br&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;&lt;div&nbsp;align="center"&nbsp;class="style"&gt;&lt;a&nbsp;href="lost_pass.php"&gt;Lost&nbsp;Password&nbsp;&lt;/a&gt;&lt;label&gt;&nbsp;::&nbsp;&lt;/label&gt;&lt;a&nbsp;href="Register2.php"&gt;&nbsp;Register&nbsp;&lt;/a&gt;&lt;label&gt;&nbsp;::&nbsp;&lt;/label&gt;&lt;a&nbsp;href="tos.php"&gt;&nbsp;Terms&nbsp;of&nbsp;Service&nbsp;&lt;/a&gt;<br /><br />&lt;br&gt;<br />&lt;br&gt;<br />&lt;br&gt;<br />&lt;font&nbsp;color="lime"&gt;&lt;b&gt;Mafia-Assassins&nbsp;is&nbsp;Open.&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;/center&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/table&gt;<br /><br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&gt;<br /><br /><br />&lt;/script&gt;&lt;/body&gt;<br />&lt;/html&gt;</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div></div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=6">PHP</category>
			<dc:creator>trixx</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182635</guid>
		</item>
		<item>
			<title>display text only 3 times with js</title>
			<link>http://www.codingforums.com/showthread.php?t=182634&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 22:02:45 GMT</pubDate>
			<description><![CDATA[ok well here's what i want to do 
 
i have a bbcode for download links on my forum 
 
when this bbcode is parsed, it will display a link under the download link BUT only for the first 3 links 
 
so basically i would need a javascript with a counter, that will display some text if the counter is > 3...]]></description>
			<content:encoded><![CDATA[<div>ok well here's what i want to do<br />
<br />
i have a bbcode for download links on my forum<br />
<br />
when this bbcode is parsed, it will display a link under the download link BUT only for the first 3 links<br />
<br />
so basically i would need a javascript with a counter, that will display some text if the counter is &gt; 3 and then add +1 to the counter<br />
<br />
normally i would EASILY do this with php, but i can't (bbcodes are parsed not parsed by server on phpbb, and you can't use php code in bbcodes)<br />
<br />
And since i'm a total newbie with javascript, i need to come here and ask this stupid question :/<br />
<br />
thanks for your help!<br />
<br />
<br />
if you still don't understand what i want to do, here is how it would look in php if i could include this code in my phpbb custom bbcode:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;?<br />
if (empty($compteur)) {<br />
$compteur = &quot;1&quot;;<br />
}<br />
<br />
if ($compteur &lt; 4) {<br />
echo &quot;bla blah blah&quot;;<br />
$compteur = $compteur+1;<br />
}<br />
?&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=2">JavaScript programming</category>
			<dc:creator>ungovernable</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182634</guid>
		</item>
		<item>
			<title>LOGO - CHALLENGE Add Text W/O Photoshop or Java</title>
			<link>http://www.codingforums.com/showthread.php?t=182633&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 20:52:05 GMT</pubDate>
			<description>This is the Logo we will be using. 
 
Image: http://i448.photobucket.com/albums/qq210/clickman/Logo-FinalC.jpg  
 
We want to be able to add text in the white area to the right of the HM oval. 
 
The CSS style is Dynamic, not Static (expands or contracts in width according to the different browser...</description>
			<content:encoded><![CDATA[<div><br />
This is the Logo we will be using.<br />
<br />
<img src="http://i448.photobucket.com/albums/qq210/clickman/Logo-FinalC.jpg" border="0" alt="" /><br />
<br />
We want to be able to add text in the white area to the right of the HM oval.<br />
<br />
The CSS style is Dynamic, not Static (expands or contracts in width according to the different browser sizes).<br />
<br />
We will use different text in the logo on different pages - 30+.<br />
<br />
We need some sort of &quot;Text Box&quot; that we can resize, choose different Fonts, Sizes, Alignment, etc. for each individual page in that white area.<br />
<br />
Not Text Box as perhaps normally thought of. We want to enter text, then &quot;save&quot; everything as a finished web page for each different page.<br />
<br />
How can we accomplish this? Any help will be appreciated.<br />
<br />
Thanks,<br />
Ron</div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=13"><![CDATA[HTML & CSS]]></category>
			<dc:creator>Clickman</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182633</guid>
		</item>
		<item>
			<title>Can you point me in the right direction please?</title>
			<link>http://www.codingforums.com/showthread.php?t=182632&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 20:37:54 GMT</pubDate>
			<description><![CDATA[I'm a psychologist by trade, and as part of my PhD, I'm required to 'try' and produce a piece of software that I can use as part of an experiment.  The elements that it needs to contain are: 
 
- ability to produce images/animations for participants to respond to. 
- I need to be able to record...]]></description>
			<content:encoded><![CDATA[<div>I'm a psychologist by trade, and as part of my PhD, I'm required to 'try' and produce a piece of software that I can use as part of an experiment.  The elements that it needs to contain are:<br />
<br />
- ability to produce images/animations for participants to respond to.<br />
- I need to be able to record whether their answer is correct or not, and also what their response times are.<br />
- I need to be able to produce a UI so that things such as background colour can be altered as needs be<br />
- participants will be asked to respond to an image, which will have varying background colours, guessing which way a 'mouse' is going to run<br />
- needs to be able to randomise which trial is shown to the participant - they will do up to 400 trials of the same task, but with various background colours, as well as orders.<br />
- I need to have keys mapped so that, for eg, z means left and m means right.<br />
- I need an output file that will show me a participant number, their response time to each trial and whether they get the answer wrong or right in each trial - it needs to be easily readable<br />
- I need to have, say, the first 50 trials following 1 rule, the next 50 following a different rule, etc etc.<br />
- Ideally, I'd like to be able to have different types of experiment as options, for eg, different numbers of options for participants to chose from.<br />
<br />
I'm happy enough to put the time in learn whichever languages/s are most appropriate, but I really need to be pointed in the right direction.  There is nothing about that I can find that is comparable at the moment, so not sure where to start!<br />
<br />
Ideally, I'd like to programme on Windows, but can programme via a Mac if needs be.  UNIX would also be an option. <br />
<br />
Can someone please give me a clue as to the programing language that would be most appropriate for what I am trying to achieve.  <br />
<br />
Many thanks,<br />
<br />
thekat1979</div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=21">Computer Programming</category>
			<dc:creator>thekat1979</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182632</guid>
		</item>
		<item>
			<title>Word Count, where each digit = a word</title>
			<link>http://www.codingforums.com/showthread.php?t=182631&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 20:28:05 GMT</pubDate>
			<description><![CDATA[I found a nice script online that will count words.  Problem is, I need it to also count each DIGIT (0-9) as a seperate word, whether the numbers are seperated by a space or not.  I've searched this forum to no avail.  Can anyone help me or show me how to do this, here is the original script: 
 
...]]></description>
			<content:encoded><![CDATA[<div>I found a nice script online that will count words.  Problem is, I need it to also count each DIGIT (0-9) as a seperate word, whether the numbers are seperated by a space or not.  I've searched this forum to no avail.  Can anyone help me or show me how to do this, here is the original script:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;!-- TWO STEPS TO INSTALL WORD COUNT:<br />
<br />
&nbsp; 1.&nbsp; Copy the coding into the HEAD of your HTML document<br />
&nbsp; 2.&nbsp; Add the last code into the BODY of your HTML document&nbsp; --&gt;<br />
<br />
&lt;!-- STEP ONE: Paste this code into the HEAD of your HTML document&nbsp; --&gt;<br />
<br />
&lt;HEAD&gt;<br />
<br />
&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;<br />
&lt;!-- Original:&nbsp; Shawn Seley --&gt;<br />
<br />
&lt;!-- This script and many more are available free online at --&gt;<br />
&lt;!-- The JavaScript Source!! http://javascript.internet.com --&gt;<br />
<br />
&lt;!-- Begin<br />
function CountWords (this_field, show_word_count, show_char_count) {<br />
if (show_word_count == null) {<br />
show_word_count = true;<br />
}<br />
if (show_char_count == null) {<br />
show_char_count = false;<br />
}<br />
var char_count = this_field.value.length;<br />
var fullStr = this_field.value + &quot; &quot;;<br />
var initial_whitespace_rExp = /^[^A-Za-z0-9]+/gi;<br />
var left_trimmedStr = fullStr.replace(initial_whitespace_rExp, &quot;&quot;);<br />
var non_alphanumerics_rExp = rExp = /[^A-Za-z0-9]+/gi;<br />
var cleanedStr = left_trimmedStr.replace(non_alphanumerics_rExp, &quot; &quot;);<br />
var splitString = cleanedStr.split(&quot; &quot;);<br />
var word_count = splitString.length -1;<br />
if (fullStr.length &lt;2) {<br />
word_count = 0;<br />
}<br />
if (word_count == 1) {<br />
wordOrWords = &quot; word&quot;;<br />
}<br />
else {<br />
wordOrWords = &quot; words&quot;;<br />
}<br />
if (char_count == 1) {<br />
charOrChars = &quot; character&quot;;<br />
} else {<br />
charOrChars = &quot; characters&quot;;<br />
}<br />
if (show_word_count &amp; show_char_count) {<br />
alert (&quot;Word Count:\n&quot; + &quot;&nbsp; &nbsp; &quot; + word_count + wordOrWords + &quot;\n&quot; + &quot;&nbsp; &nbsp; &quot; + char_count + charOrChars);<br />
}<br />
else {<br />
if (show_word_count) {<br />
alert (&quot;Word Count:&nbsp; &quot; + word_count + wordOrWords);<br />
}<br />
else {<br />
if (show_char_count) {<br />
alert (&quot;Character Count:&nbsp; &quot; + char_count + charOrChars);<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp;  }<br />
}<br />
return word_count;<br />
}<br />
//&nbsp; End --&gt;<br />
&lt;/script&gt;<br />
<br />
&lt;/HEAD&gt;<br />
<br />
&lt;!-- STEP TWO: Copy this code into the BODY of your HTML document&nbsp; --&gt;<br />
<br />
&lt;BODY&gt;<br />
<br />
&lt;form&gt;<br />
&lt;textarea cols=40 rows=5 name=x&gt;<br />
&lt;/textarea&gt;<br />
&lt;br&gt;<br />
&lt;input type=button value=&quot;Count Words&quot; OnClick =&quot;CountWords(this.form.x, true, true);&quot;&gt;<br />
&lt;/form&gt;<br />
<br />
&lt;p&gt;&lt;center&gt;<br />
&lt;font face=&quot;arial, helvetica&quot; size&quot;-2&quot;&gt;Free JavaScripts provided&lt;br&gt;<br />
by &lt;a href=&quot;http://javascriptsource.com&quot;&gt;The JavaScript Source&lt;/a&gt;&lt;/font&gt;<br />
&lt;/center&gt;&lt;p&gt;<br />
<br />
&lt;!-- Script Size:&nbsp; 2.04 KB --&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=2">JavaScript programming</category>
			<dc:creator>theungod</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182631</guid>
		</item>
		<item>
			<title>Help me, some genius, PLEASE!!!</title>
			<link>http://www.codingforums.com/showthread.php?t=182630&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 20:04:39 GMT</pubDate>
			<description>I am getting an error, in IE only (7 and 8).  Firefox, Safari and Netscape work fine. 
 
The problem is with older code, that I have not worked with.  (Owner just noticed it, so now I am stuck fixing it.) 
 
The code is bascially a dynamic text box, that when a user starts typing in a product name,...</description>
			<content:encoded><![CDATA[<div>I am getting an error, in IE only (7 and 8).  Firefox, Safari and Netscape work fine.<br />
<br />
The problem is with older code, that I have not worked with.  (Owner just noticed it, so now I am stuck fixing it.)<br />
<br />
The code is bascially a dynamic text box, that when a user starts typing in a product name, it displays a drop down list that the user can use to select a product.  Once they select their product, a second drop down box displays the various sizes and prices (i.e. Small - $7.50, Medium - $8.50, Large - $10.50.)<br />
<br />
The error I am seeing in IE is the following:  'name' is null or not an object.<br />
<br />
Here is the actual select boxes code:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><br />
&lt;input id=&quot;myInput&quot; type=&quot;text&quot; style=&quot;height:18px; width:190px;&quot; value = 'Type To Find Product' onfocus=&quot;this.form.myInput.value='';this.form.products_id.value='';this.form.cart_quantity.value=1;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;myContainer&quot;&gt;&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
<br />
&lt;/div&gt;<br />
<br />
&lt;div class=&quot;back&quot; style=&quot;margin-left:20px;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;orange&quot; style=&quot;line-height:18px;&quot;&gt;Size&lt;/div&gt;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;id[&lt;?php echo WEIGHT_OPTION_ID; ?&gt;]&quot; id=&quot;attrib-&lt;?php echo WEIGHT_OPTION_ID; ?&gt;&quot; style=&quot;width:114px;height:20px;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;&quot;&gt;Select Product&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&lt;/div&gt;</code><hr />
</div>The actual error is occuring here - again only in IE - firefox and other browsers work fine.<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><br />
<br />
var handleSuccess = function(o){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var test=eval(o.responseText);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(test != undefined){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; removeAllOptions(selectbox);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addOption(selectbox,'Choose Weight','');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (var i = 0; i &lt; test.length; i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <font color="Red">addOption(selectbox, test[i].name, test[i].id);</font> - <font color="red">here is where it throws an error</font>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; removeAllOptions(selectbox);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addOption(selectbox,'Select Product','');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</code><hr />
</div>For the life of me, I cannot figure out how to solve this.  And I am forced to work until it is fixed, which could be days.  No weekend for me unless I can figure this out, or unless someone has a clue that I am missing.<br />
<br />
Thank you to whomever can help me!!!!!!!!</div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=2">JavaScript programming</category>
			<dc:creator>Seebra</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182630</guid>
		</item>
		<item>
			<title>CSS nested elements deactivating links. Help please!</title>
			<link>http://www.codingforums.com/showthread.php?t=182629&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 19:48:06 GMT</pubDate>
			<description><![CDATA[I'm having a problem with my links becoming deactive within some nested elements. I followed some instruction on creating rounded corner boxes via a tutorial by Andy Budd. Anyway, it all works great except when I wrap link tags around a few pieces of copy. I'm a bit of a beginner still so maybe...]]></description>
			<content:encoded><![CDATA[<div>I'm having a problem with my links becoming deactive within some nested elements. I followed some instruction on creating rounded corner boxes via a tutorial by Andy Budd. Anyway, it all works great except when I wrap link tags around a few pieces of copy. I'm a bit of a beginner still so maybe this is a simple fix but I've spent over a days worth of time now trying to figure it out on my own and can't seem to get it.<br />
<br />
Just to clear this up, the links work everywhere on the page outside of the &quot;box&quot; element I'll list below and I've double and triple checked that the link within the &quot;box&quot; element is written correctly and it is. The CSS even finds the link and styles it correctly, however, the mouse function seems to be disabled. Does this all make sense? Below is the CSS, any help would be greatly appreciated...<br />
<br />
This is the code that creates the box and it works correctly...<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">.box {<br />
&nbsp; &nbsp; &nbsp; &nbsp; width:831px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; background:url(../imgs/box-spacer.gif) repeat-y;<br />
}<br />
<br />
.box h1 {<br />
&nbsp; &nbsp; &nbsp; &nbsp; background:url(../imgs/box-top.gif) no-repeat left top;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-top:40px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; font-weight: normal;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
.box .last {<br />
&nbsp; &nbsp; &nbsp; &nbsp; background:url(../imgs/box-bottom.gif) no-repeat left bottom;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-bottom:60px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
.box h1, .box p {<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-left:60px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; padding-right:60px;<br />
}</code><hr />
</div>And this is the code I used to test that the page is seeing it as a link...<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">.box h1 a:link {<br />
&nbsp; &nbsp; &nbsp; &nbsp; color:#00CCFF;<br />
}<br />
<br />
.box h1 a:hover {<br />
&nbsp; &nbsp; &nbsp; &nbsp; color: #FF0066;<br />
}</code><hr />
</div><br />
It changes the color correctly but the hover doesn't work and if you click, it doesn't link you anywhere. Again, the link is written correctly on the page. Can anyone help please? I appreciate it. Also, the website is up at <a href="http://www.fiddlergroup.com/zygote" target="_blank">http://www.fiddlergroup.com/zygote</a> if it helps. The particular page I was using for testing is the &quot;what's in a name&quot; page. As you'll see, all the code and pages and what not is all very simple, just can't seem to figure out how to fix this one odd issue.</div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=13"><![CDATA[HTML & CSS]]></category>
			<dc:creator>bFig</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182629</guid>
		</item>
		<item>
			<title>String Object Method Help</title>
			<link>http://www.codingforums.com/showthread.php?t=182628&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 19:44:54 GMT</pubDate>
			<description>Hello, 
 
I was able to solve an issue I had in previous post in writing some code to grab a section of a cookie value string (2 letter state ex MD) and check against it to do something.  That was easy because the state was at the end of the string and all I had to do was use the slice() method. ...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I was able to solve an issue I had in previous post in writing some code to grab a section of a cookie value string (2 letter state ex MD) and check against it to do something.  That was easy because the state was at the end of the string and all I had to do was use the slice() method.  Now I was to be able to grab the 2 letter state from a string that looks like this:<br />
<br />
BALTIMORE, MD|blah blah|blah blah|blah blah (the real cookie value string will always be separated with pipes (|))<br />
<br />
Can anyone please help?<br />
<br />
Thanks in advance!<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;HTML&gt;<br />
&lt;HEAD&gt;<br />
&lt;TITLE&gt;&lt;/TITLE&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot;&gt;&lt;/script&gt;<br />
&lt;SCRIPT LANUAGE=&quot;JavaScript&quot;&gt;<br />
<br />
function setCookie(name, value, expires, path, domain, secure) {<br />
&nbsp; &nbsp; document.cookie= name + &quot;=&quot; + escape(value) +<br />
&nbsp; &nbsp; &nbsp; &nbsp; ((expires) ? &quot;; expires=&quot; + expires.toGMTString() : &quot;&quot;) +<br />
&nbsp; &nbsp; &nbsp; &nbsp; ((path) ? &quot;; path=&quot; + path : &quot;&quot;) +<br />
&nbsp; &nbsp; &nbsp; &nbsp; ((domain) ? &quot;; domain=&quot; + domain : &quot;&quot;) +<br />
&nbsp; &nbsp; &nbsp; &nbsp; ((secure) ? &quot;; secure&quot; : &quot;&quot;);<br />
}<br />
function getCookie(name) {<br />
&nbsp; &nbsp; var dc = document.cookie;<br />
&nbsp; &nbsp; var prefix = name + &quot;=&quot;;<br />
&nbsp; &nbsp; var begin = dc.indexOf(&quot;; &quot; + prefix);<br />
&nbsp; &nbsp; if (begin == -1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin = dc.indexOf(prefix);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (begin != 0) return null;<br />
&nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; begin += 2;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; var end = document.cookie.indexOf(&quot;;&quot;, begin);<br />
&nbsp; &nbsp; if (end == -1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; end = dc.length;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; return unescape(dc.substring(begin + prefix.length, end));<br />
}<br />
&lt;/SCRIPT&gt;<br />
&lt;/HEAD&gt;<br />
&lt;BODY&gt;<br />
&lt;script&gt;<br />
&nbsp;$(function(){ <br />
&nbsp; &nbsp; &nbsp; &nbsp;  $('div').each(function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if($(this).hasClass('stateSelect1')){ <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (getCookie(&quot;location&quot;)!=null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  var state = getCookie(&quot;location&quot;).slice(-2).toLowerCase();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  var stateArray = [];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  stateArray = $(this).attr('rel').toLowerCase().split(',');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if($.inArray(state,stateArray) &gt;= 0){ <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $(document).ready(function(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $(&quot;.stateSelect0&quot;).css(&quot;display&quot;,&quot;none&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&quot;.stateSelect1&quot;).css(&quot;display&quot;,&quot;block&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  } <br />
&nbsp; &nbsp; &nbsp; &nbsp;  }); <br />
&nbsp;});<br />
&nbsp;&lt;/script&gt;<br />
&lt;strong&gt;Step 1.&nbsp; Copy and paste in cookie set text field:&lt;/strong&gt; &lt;br&gt;<br />
&lt;br&gt;<br />
&lt;strong&gt;Show Image1:&lt;/strong&gt;&lt;br&gt;<br />
CHARLOTTE, NC|blah blah|blah blah|blah blah|blah blah&lt;br&gt;<br />
BALTIMORE, MD|blah blah|blah blah|blah blah&lt;br&gt;<br />
&lt;br&gt;<br />
&lt;strong&gt;Show Image2:&lt;/strong&gt;&lt;br&gt;<br />
COLUMBIA, SC|blah blah|blah blah|blah blah&lt;br&gt;<br />
RESTON, VA|blah blah|blah blah|blah blah&lt;br&gt;<br />
&lt;br&gt;<br />
&lt;strong&gt;Show Image3:&lt;/strong&gt;&lt;br&gt;<br />
LOS ANGELES, CA|blah blah|blah blah|blah blah&lt;br&gt;<br />
SEATLE, WA|blah blah|blah blah|blah blah&lt;br&gt;<br />
&lt;br&gt;<br />
&lt;br&gt;<br />
&lt;strong&gt;Step 2.&lt;/strong&gt;<br />
&lt;input type=&quot;button&quot; value=&quot;Set Cookie&quot;&nbsp; onclick='setCookie(&quot;location&quot;, prompt(&quot;Enter your location&quot;))' /&gt;<br />
&lt;br&gt;<br />
&lt;br&gt;<br />
&lt;strong&gt;Step 3.&lt;/strong&gt; Now refresh page. &lt;br&gt;<br />
&lt;br&gt;<br />
&lt;style&gt;<br />
.default{ border:3px solid limegreen; margin-bottom:5px; width:200px}<br />
.div1{ border:3px solid red; margin-bottom:5px; width:200px}<br />
.div2 { border:3px solid purple; margin-bottom:5px; width:200px}<br />
.div3 { border:3px solid yellow; margin-bottom:5px; width:200px}<br />
.div4 { border:3px solid blue; margin-bottom:5px; width:200px}<br />
&lt;/style&gt;<br />
&lt;!--DEFAULT IMAGE IF NO COOKIE SET OR NON LISTED STATE--&gt;<br />
&lt;div class=&quot;stateSelect0 default&quot;&gt; DEFAULT IMAGE &lt;/div&gt;<br />
&lt;!--DEFAULT IMAGE IF NO COOKIE SET OR NON LISTED STATE--&gt;<br />
&lt;div class=&quot;stateSelect1 div1&quot; rel=&quot;NC,MD&quot; style=&quot;display:none&quot;&gt;Image 1 - DIV 1&lt;/div&gt;<br />
&lt;div class=&quot;stateSelect2 div2&quot; rel=&quot;SC,VA&quot; style=&quot;display:none&quot;&gt;Image 2 - DIV 2&lt;/div&gt;<br />
&lt;div class=&quot;stateSelect3 div3&quot; rel=&quot;WA,CA&quot; style=&quot;display:none&quot;&gt;Image 3 - DIV 3&lt;/div&gt;<br />
&lt;/BODY&gt;<br />
&lt;/HTML&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=2">JavaScript programming</category>
			<dc:creator>bigalo</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182628</guid>
		</item>
		<item>
			<title><![CDATA[XHTML lang & xml:lang question]]></title>
			<link>http://www.codingforums.com/showthread.php?t=182627&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 19:22:45 GMT</pubDate>
			<description><![CDATA[Why do I so ofter see something like: 
<html lang="fr" xml:lang="fr" ...> 
isn't declaring BOTH is redundant? 
 
Can't see an official W3C doc state on this... 
 
Thanks!]]></description>
			<content:encoded><![CDATA[<div>Why do I so ofter see something like:<br />
<code style="background-color: #FFFFBB">&lt;html lang=&quot;fr&quot; xml:lang=&quot;fr&quot; ...&gt;</code><br />
isn't declaring BOTH is redundant?<br />
<br />
Can't see an official W3C doc state on this...<br />
<br />
Thanks!</div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=3">XML</category>
			<dc:creator>TheWolf1</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182627</guid>
		</item>
		<item>
			<title>urgent help</title>
			<link>http://www.codingforums.com/showthread.php?t=182626&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 18:36:15 GMT</pubDate>
			<description><![CDATA[hi!! 
i tried to insert some data into mysql..but it stopped halfway throwing a "syntax error"..but some data got inserted..i think i haven't escaped some characters..can i do that in mysql or should i do that in php? 
thanks in advance..]]></description>
			<content:encoded><![CDATA[<div>hi!!<br />
i tried to insert some data into mysql..but it stopped halfway throwing a &quot;syntax error&quot;..but some data got inserted..i think i haven't escaped some characters..can i do that in mysql or should i do that in php?<br />
thanks in advance..</div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=7">MySQL</category>
			<dc:creator>java_freak</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182626</guid>
		</item>
		<item>
			<title>Help with  layout</title>
			<link>http://www.codingforums.com/showthread.php?t=182625&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 18:24:54 GMT</pubDate>
			<description>hi!! 
can some1 tel me how to center a web document? likem the page should expan and contract when the browser window is resized.. 
thanks..</description>
			<content:encoded><![CDATA[<div>hi!!<br />
can some1 tel me how to center a web document? likem the page should expan and contract when the browser window is resized..<br />
thanks..</div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=13"><![CDATA[HTML & CSS]]></category>
			<dc:creator>java_freak</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182625</guid>
		</item>
		<item>
			<title>updating username</title>
			<link>http://www.codingforums.com/showthread.php?t=182624&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 18:06:52 GMT</pubDate>
			<description><![CDATA[im trying to have a way for a user to change there username. 
 
here is the form that i want to allow a user to change there username.  
 
Code: 
--------- 
<?php 
include_once 'Connect.php'; 
if (!is_authed())  
{]]></description>
			<content:encoded><![CDATA[<div>im trying to have a way for a user to change there username.<br />
<br />
here is the form that i want to allow a user to change there username. <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;?php<br />
include_once 'Connect.php';<br />
if (!is_authed()) <br />
{<br />
&nbsp; &nbsp;  die ('You are not permitted to view this page, &lt;a href=&quot;index.php&quot;&gt;click here&lt;/a&gt; to go back.');<br />
}<br />
&nbsp; &nbsp; $thequery = (&quot;SELECT * FROM members WHERE username = '$username' &quot;);<br />
&nbsp; &nbsp; $query = mysql_query($thequery) or die ('session data dont match.');<br />
&nbsp; &nbsp; while ($row = mysql_fetch_assoc($query)) <br />
{<br />
$username = $row[&quot;username&quot;];<br />
}<br />
?&gt;<br />
&lt;html&gt;&lt;head&gt;<br />
&lt;link href=&quot;style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;<br />
&lt;script src=&quot;scripts/ShowHint.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br />
&lt;/head&gt;<br />
&nbsp;<br />
&lt;body&gt;<br />
&lt;div class=logo&gt;&lt;?php include &quot;logo.php&quot;;?&gt;&lt;/div&gt;<br />
&nbsp;<br />
&lt;div class=navigationbarbox&gt;&lt;?php include &quot;navigationbar.php&quot;;?&gt;&lt;/div&gt;<br />
&lt;div class=editpriform&gt;<br />
&lt;form action=&quot;user.php&quot; method=&quot;POST&quot; name=&quot;myform2&quot;&gt;<br />
&lt;?php if (isset($username_errorone)) {?&gt;There was an error: &lt;?php echo $username_errorone; ?&gt; please try again.&lt;?php } ?&gt;<br />
&lt;?php if (isset($username_errortwo)) {?&gt;There was an error: &lt;?php echo $username_errortwo; ?&gt; please try again.&lt;?php } ?&gt;<br />
&lt;?php if (isset($usernameexisits_error)) {?&gt;There was an error: &lt;?php echo $usernameexisits_error; ?&gt; please try again.&lt;?php } ?&gt;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &lt;fieldset&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;table width=&quot;100%&quot; &gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;35%&quot;&gt;Username:&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;58%&quot;&gt;&lt;input type=&quot;text&quot; size=&quot;20&quot; maxlength=&quot;20&quot; name=&quot;username&quot; value=&quot;&lt;?php echo $username?&gt;&quot; align=&quot;&quot; tabindex=&quot;&quot;/&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td width=&quot;7%&quot;&gt;&lt;a href=&quot;#&quot; class=&quot;hintanchor&quot; onMouseover=&quot;showhint('Please choose a username. Should consist of alphanumeric characters only.', this, event, '150px')&quot;&gt;[?]&lt;/a&gt;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;submit&quot; value=&quot;Register&quot; name=&quot;submit&quot; align=&quot;&quot;&nbsp; tabindex=&quot;&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &lt;/tr&gt;<br />
&lt;/table&gt;<br />
&nbsp; &lt;/fieldset&gt;<br />
&lt;/form&gt;<br />
&lt;/div&gt;&nbsp; <br />
&nbsp;<br />
&lt;div class=footerbox&gt;&lt;?php include &quot;footer.php&quot;;?&gt;&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code><hr />
</div>this is page that the form data is sent to<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> <br />
&lt;?php<br />
include 'Connect.php';<br />
&nbsp;<br />
if(!isset($_POST[submit])) // checks that the data being recieved came from a POST variable named 'submit'&nbsp; <br />
{<br />
&nbsp; &nbsp;  // if error reshow the form You cannot access this page directly.<br />
&nbsp; &nbsp;  include 'userform.php';<br />
&nbsp; &nbsp;  exit;<br />
}<br />
else<br />
{<br />
&nbsp; &nbsp; //CHECKS USERNAME<br />
&nbsp; &nbsp; if(!preg_match(&quot;/^[a-z\d]{5,12}$/i&quot;, $_POST[username]))<br />
&nbsp; &nbsp; {&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; // Reshow the form with an error<br />
&nbsp; &nbsp; &nbsp; &nbsp; $username_errorone = &quot;Your username must only contain letter and numbers and be at least 5 characters but no longer than 12 characters in length!&lt;br /&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; include 'userform.php';<br />
&nbsp; &nbsp; &nbsp; &nbsp; exit;&nbsp; <br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; $username = $_POST['username'];<br />
&nbsp; &nbsp; if&nbsp; ($username == $_SESSION['username']);<br />
&nbsp; &nbsp; {&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; // Reshow the form with an error<br />
&nbsp; &nbsp; &nbsp; &nbsp; $username_errortwo = &quot;You entered the same username if you wish to change please choose something new&lt;br /&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; include 'userform.php';<br />
&nbsp; &nbsp; &nbsp; &nbsp; exit;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; $query = mysql_query(&quot;SELECT * FROM members WHERE username = '&quot;. $username .&quot;'&quot;);<br />
&nbsp; &nbsp; if (mysql_num_rows($query) &gt; 0)<br />
&nbsp; &nbsp; {&nbsp;  <br />
&nbsp; &nbsp; // Reshow the form with an error<br />
&nbsp; &nbsp; $usernameexisits_error = 'username already taken';<br />
&nbsp; &nbsp; include 'userform.php';<br />
&nbsp; &nbsp; exit;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; $query = &quot;insert into members (username) values ('$username')&quot;;<br />
&nbsp; &nbsp; $result= mysql_query ($query) or die ('Could not edit user.');<br />
&nbsp; &nbsp; // if suceesfully inserted data into database,&nbsp; <br />
&nbsp; &nbsp; if($result)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; header('Location: index.php');<br />
&nbsp; &nbsp; }<br />
}<br />
?&gt;</code><hr />
</div>when i test it, and use the same username or i input incorrect length and chacters if it threws up the error message as it should. <br />
<br />
now when i enter a name already in the database it shows the page with the message 'You are not permitted to view this page' <br />
can anyone explain what i have to do to fix and achieve what i want to<br />
i also think i will need to update the session has i store the username in the session i would i go about doing this</div>

]]></content:encoded>
			<category domain="http://www.codingforums.com/forumdisplay.php?f=6">PHP</category>
			<dc:creator>chris_s_22</dc:creator>
			<guid isPermaLink="true">http://www.codingforums.com/showthread.php?t=182624</guid>
		</item>
	</channel>
</rss>
