<?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>BioRUST Forums - HTML / PHP / ASP / JS</title>
		<link>http://forums.biorust.com/</link>
		<description><![CDATA[Don't know your tags from your HTTP headers?  Are your PHP scripts driving you around the bend?  Seek refuge here.]]></description>
		<language>en</language>
		<lastBuildDate>Fri, 20 Nov 2009 23:10:42 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.biorust.com/images/misc/rss.jpg</url>
			<title>BioRUST Forums - HTML / PHP / ASP / JS</title>
			<link>http://forums.biorust.com/</link>
		</image>
		<item>
			<title>php, shoutbox problems</title>
			<link>http://forums.biorust.com/html-php-asp-js/8770-php-shoutbox-problems.html</link>
			<pubDate>Tue, 17 Nov 2009 01:30:27 GMT</pubDate>
			<description><![CDATA[Hi everyone! 
 
I got a few "errors" on my site.. So i was wondering if anyone would care to help me out?  
VanHansenDesign - Home (http://www.vanhansendesign.com) is my site, go there and you'll see the problem. I figured that was the easiest way to illustrate the problem.  
 
and here is the...]]></description>
			<content:encoded><![CDATA[<div>Hi everyone!<br />
<br />
I got a few &quot;errors&quot; on my site.. So i was wondering if anyone would care to help me out? <br />
<a href="http://www.vanhansendesign.com" target="_blank">VanHansenDesign - Home</a> is my site, go there and you'll see the problem. I figured that was the easiest way to illustrate the problem. <br />
<br />
and here is the code...<br />
it's alot of code but please have a look at it! <br />
<br />
nr1. shout.php<br />
<br />
&lt;?php<br />
<br />
// calling session_start() the function which starts our authentication session<br />
session_start();<br />
<br />
// connecting to mysql server<br />
$l = mysql_connect  ( &quot;vanhansendesign.com.mysql&quot; , &quot;vanhansendesign&quot; , &quot;ketpia007&quot; ) or die(&quot;Error connecting:&lt;BR&gt;&lt;BR&gt;&quot;.mysql_error());<br />
mysql_select_db( &quot;vanhansendesign&quot; ) or die(&quot;Error getting db:&lt;BR&gt;&lt;BR&gt;&quot;.mysql_error());<br />
<br />
// defining getShouts() which is our function that gets all of our shouts<br />
function getShouts()<br />
{<br />
<br />
    echo '&lt;div align=&quot;center&quot;&gt;<br />
        &lt;table width=&quot;150&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;<br />
          &lt;tr&gt;<br />
            &lt;td&gt;<br />
    ';    <br />
    <br />
    $query = mysql_query(&quot;SELECT * FROM shouts ORDER BY id DESC LIMIT 10&quot;) or die(mysql_error());<br />
    while ($row = mysql_fetch_array($query) )<br />
    {<br />
        <br />
        $name = stripslashes($row['Name']);<br />
        $contact = stripslashes($row['Contact']);<br />
        $shout = stripslashes($row['Shout']);<br />
        <br />
        if(empty($contact))<br />
        {<br />
        <br />
            echo '&lt;p&gt;&lt;span class=&quot;author&quot;&gt;'.$name.'&lt;/span&gt; - &lt;span class=&quot;shout&quot;&gt;'.$shout.'&lt;/span&gt;&lt;/p&gt;';<br />
            <br />
        } else {<br />
        <br />
            echo '&lt;p&gt;&lt;span class=&quot;author&quot;&gt;&lt;a href=&quot;'.$contact.'&quot; target=&quot;_blank&quot;&gt;'.$name.'&lt;/a&gt;&lt;/span&gt; - &lt;span class=&quot;shout&quot;&gt;'.$shout.'&lt;/span&gt;&lt;/p&gt;';<br />
<br />
        } // if empty contact<br />
                <br />
    } // while row mysqlfetcharray query<br />
    <br />
    echo '&lt;br&gt;&lt;br&gt;';<br />
    <br />
    echo '<br />
            &lt;/td&gt;<br />
          &lt;/tr&gt;<br />
          &lt;tr&gt;<br />
            &lt;td height=&quot;10&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
            &lt;form name=&quot;shout&quot; method=&quot;post&quot; action=&quot;shout.php&quot;&gt;<br />
              &lt;div align=&quot;center&quot;&gt;<br />
                &lt;input name=&quot;name&quot; type=&quot;text&quot; id=&quot;name&quot; value=&quot;Name&quot; size=&quot;25&quot; maxlength=&quot;10&quot;&gt;&lt;br&gt;<br />
                &lt;input name=&quot;contact&quot; type=&quot;text&quot; id=&quot;contact&quot; value=&quot;http://&quot; size=&quot;25&quot;&gt;&lt;br&gt;<br />
                &lt;input name=&quot;message&quot; type=&quot;text&quot; id=&quot;message&quot; value=&quot;Message&quot; size=&quot;25&quot;&gt;&lt;br&gt;<br />
                &lt;input name=&quot;shout&quot; type=&quot;submit&quot; id=&quot;shout&quot; value=&quot;Shout!&quot;&gt;<br />
              &lt;/div&gt;<br />
            &lt;/form&gt;<br />
            &lt;/td&gt;<br />
          &lt;/tr&gt;<br />
          &lt;/table&gt;<br />
          &lt;/div&gt;<br />
        ';    <br />
<br />
} // function getshouts<br />
<br />
<br />
// our processing if control statement<br />
if ( isset ( $_POST['shout'] ) )<br />
{<br />
    <br />
    $name = addslashes($_POST['name']);<br />
    $contact = addslashes($_POST['contact']);<br />
    $message =  $_POST['message'];<br />
    <br />
    if ( ( isset($name) ) &amp;&amp; ( isset($message) ) )<br />
    {<br />
        <br />
        // getting smilie list<br />
        $smilies = mysql_query(&quot;SELECT * FROM smilies&quot;) or die(mysql_error());<br />
        while($get = mysql_fetch_array ($smilies))<br />
        {<br />
            <br />
            $alt = $get['Alt'];<br />
            $smilie = $get['URL'];<br />
            <br />
            $message = str_replace( $get['Symbol'] , '&lt;img src=&quot;smilies/'.$smilie.'&quot; border=&quot;0&quot; width=&quot;15&quot; height=&quot;15&quot; alt=&quot;'.$alt.'&quot;&gt;' , $message);<br />
            $themessage = addslashes($message);<br />
            <br />
            // replacing all smilies<br />
                    <br />
        }<br />
    <br />
        mysql_query(&quot;INSERT INTO shouts (Name, Contact, Shout) VALUES ( '$name' , '$contact' , '$message' )&quot;) or die(mysql_error());<br />
        $_SESSION['has_posted'] = 'yes';<br />
        header(&quot;Location: shout.php&quot;);<br />
        <br />
        // if required fields aren't empty, process into database<br />
        <br />
    } else {<br />
    <br />
        echo '&lt;script&gt;alert(&quot;Some fields were not filled out!&quot;);&lt;/script&gt;';<br />
        header(&quot;Location: shout.php&quot;);<br />
        <br />
        // if required fields were left empty, show an error dialog<br />
        <br />
    }<br />
<br />
}/* else {<br />
<br />
    echo '&lt;script&gt;alert(&quot;Please follow the form to this page.&quot;);&lt;/script&gt;';<br />
    header(&quot;Location: shout.php&quot;);<br />
    <br />
    // if they weren't even referred from the form, show error dialog and redirect<br />
<br />
} // if isset post shout<br />
<br />
/* STARTING THE MAIN SCRIPT NOW */<br />
<br />
// starting the table<br />
<br />
//displaying the shouts<br />
getShouts();<br />
<br />
<br />
mysql_close($l);<br />
<br />
<br />
?&gt;<br />
<br />
<br />
<br />
-----------------------<br />
nr 2. admin.html<br />
<br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;!-- InstanceBegin template=&quot;/Templates/Temp1.dwt&quot; codeOutsideHTMLIsLocked=&quot;false&quot; --&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;<br />
&lt;!-- InstanceBeginEditable name=&quot;doctitle&quot; --&gt;<br />
&lt;title&gt;Van Hansen Design&lt;/title&gt;<br />
<br />
&lt;?php<br />
<br />
// calling session_start() the function which starts our authentication session<br />
session_start();<br />
<br />
// connecting to mysql server<br />
$l = mysql_connect  ( &quot;vanhansendesign.com.mysql&quot; , &quot;vanhansendesign&quot; , &quot;ketpia007&quot; ) or die(&quot;Error connecting:&lt;BR&gt;&lt;BR&gt;&quot;.mysql_error());<br />
mysql_select_db( &quot;vanhansendesign&quot; ) or die(&quot;Error getting db:&lt;BR&gt;&lt;BR&gt;&quot;.mysql_error());<br />
<br />
// setting user login credentials<br />
$username = &quot;adminuser&quot;;<br />
$password = &quot;password&quot;;<br />
<br />
// log the user in<br />
if ( isset ( $_POST['login'] ) )<br />
{<br />
<br />
    if (( $_POST['username'] === $username ) &amp;&amp; ( $_POST['password'] === $password ))<br />
    {<br />
    <br />
        $_SESSION['admin_logged_in'] = 'true';<br />
        <br />
    }<br />
    <br />
}<br />
<br />
// selecting the action to perform<br />
function selectAction ( $mode ) <br />
{<br />
<br />
    switch ($mode) <br />
    {<br />
    <br />
        case '':<br />
            echo 'Welcome to the administration panel, make the selection above.';<br />
            break;<br />
            <br />
        case 'add':<br />
            echo '<br />
                &lt;form action=&quot;admin.php?mode=posting&quot; method=&quot;post&quot; name=&quot;addSmilie&quot; enctype=&quot;multipart/form-data&quot;&gt;<br />
                &lt;input name=&quot;symbol&quot; type=&quot;text&quot; value=&quot;=)&quot; size=&quot;25&quot; maxlength=&quot;4&quot;&gt;&lt;br&gt;<br />
                &lt;input name=&quot;image&quot; type=&quot;file&quot;&gt;&lt;br&gt;<br />
                &lt;input name=&quot;addsmilie&quot; type=&quot;submit&quot; value=&quot;Add Smilie!&quot;&gt;&lt;br&gt;&lt;br&gt;<br />
                Check your symbol and filename, I couldnt be bothered writing an &quot;edit smilie&quot; function. Please note, as this is not a gdlib tutorial, there are no file dimensions protections. Please only upload 15x15 pixel smilies, if they are not this size, they will be skewed when they are resized when displayed.<br />
                &lt;/form&gt;<br />
            ';<br />
            break;<br />
            <br />
        case 'delete':<br />
            $query = mysql_query(&quot;SELECT * FROM smilies&quot;) or die(mysql_error());<br />
            while($row = mysql_fetch_array($query)){<br />
            <br />
                echo '&lt;a href=&quot;admin.php?mode=posting&amp;smilie='.$row['id'].'&quot;&gt;<br />
                      &lt;img src=&quot;smilies/'.$row['URL'].'&quot; border=&quot;0&quot; width=&quot;15&quot; height=&quot;15&quot; alt=&quot;'.$row['Alt'].'&quot;&gt;<br />
                      &lt;/a&gt;&lt;br&gt;&lt;br&gt;<br />
                      ';<br />
                      <br />
            }<br />
            break;            <br />
            <br />
        case 'clear':<br />
            mysql_query(&quot;TRUNCATE TABLE shouts&quot;) or die(mysql_error());<br />
            echo 'Shoutbox cleared successfully!';<br />
            break;<br />
            <br />
        case 'logout':<br />
            $_SESSION['admin_logged_in'] = '';<br />
            <br />
            header(&quot;Location: admin.php&quot;);<br />
            break;<br />
            <br />
        case 'posting':<br />
            if(isset($_POST['addsmilie'])){<br />
            <br />
                $uploaddir = 'smilies/';<br />
                <br />
                $uploadfile = $uploaddir . $_FILES['image']['name'];<br />
                <br />
                //echo '&lt;br&gt;&lt;br&gt;'.$uploaddir.'&lt;br&gt;'.$uploadfile.'&lt;br&gt;&lt;br&gt;  ';<br />
                <br />
                $upload = move_uploaded_file($_FILES['image']['tmp_name'], $uploadfile);<br />
                echo '&lt;pre&gt;';<br />
                if( $upload == TRUE ) { <br />
                <br />
                    echo 'Success';<br />
                <br />
                } else {<br />
                <br />
                    echo 'Error';<br />
                    print_r($_FILES);<br />
                    exit;<br />
                    <br />
                }<br />
                print &quot;&lt;/pre&gt;&quot;;<br />
                <br />
                $alt = $_FILES['image']['name'];<br />
                $symbol = $_POST['symbol'];<br />
                $url = $_FILES['image']['name'];<br />
                <br />
                mysql_query(&quot;INSERT INTO smilies(Symbol, URL, Alt) VALUES('$symbol','$url','$alt')&quot;) or die(mysql_error());<br />
                echo '&lt;br&gt;&lt;br&gt;Successfully inserted smilie!&lt;br&gt;&lt;br&gt;&lt;a href=&quot;admin.php&quot;&gt;Admin&lt;/a&gt; | &lt;a href=&quot;shout.php&quot;&gt;Shouts&lt;/a&gt;';<br />
                exit;<br />
                <br />
            }<br />
            <br />
            if(isset($_GET['smilie'])){<br />
                <br />
                $smilie = $_GET['smilie'];<br />
                mysql_query(&quot;DELETE FROM smilies WHERE id = '$smilie' LIMIT 1&quot;) or die(mysql_error());<br />
                echo 'Successfully deleted smilie!&lt;br&gt;&lt;br&gt;&lt;a href=&quot;admin.php&quot;&gt;Admin&lt;/a&gt; | &lt;a href=&quot;shout.php&quot;&gt;Shouts&lt;/a&gt;';<br />
            <br />
            }<br />
            break;<br />
            <br />
        default:<br />
        <br />
        <br />
            <br />
    } // end switch<br />
<br />
} // end if<br />
<br />
// checking login status<br />
if ( $_SESSION['admin_logged_in'] === 'true' )<br />
{<br />
<br />
?&gt;<br />
<br />
<br />
&lt;!-- InstanceEndEditable --&gt;<br />
<br />
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css_1.css&quot; /&gt;<br />
<br />
&lt;!-- InstanceBeginEditable name=&quot;head&quot; --&gt;<br />
&lt;!-- InstanceEndEditable --&gt;<br />
&lt;/head&gt;<br />
<br />
<br />
&lt;body class=&quot;oneColFixCtrHdr&quot;&gt;<br />
<br />
<br />
<br />
&lt;div id=&quot;container&quot;&gt;<br />
  &lt;div id=&quot;header&quot;&gt;&lt;img src=&quot;Images/Banner_V1.png&quot; width=&quot;600&quot; height=&quot;150&quot; alt=&quot;Banner&quot; /&gt;&lt;br/&gt;<br />
<br />
<br />
&lt;p id=&quot;firefox&quot;&gt;Please use &lt;a href=&quot;www.mozilla.com&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;Mozilla Firefox&lt;/strong&gt;&lt;/a&gt; to view this site!&lt;/p&gt;<br />
<br />
<br />
&lt;ul id=&quot;menu1&quot; &gt;<br />
&lt;li&gt;&lt;a href=&quot;index.html&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
&lt;img src=&quot;Images/dott_1.png&quot; /&gt;<br />
&lt;li&gt;&lt;a href=&quot;Gallery.html&quot;&gt;Gallery&lt;/a&gt;&lt;/li&gt;<br />
&lt;img src=&quot;Images/dott_1.png&quot; /&gt;<br />
&lt;li&gt;&lt;a href=&quot;about_me.html&quot;&gt;About me&lt;/a&gt;&lt;/li&gt;<br />
&lt;img src=&quot;Images/dott_1.png&quot; /&gt;<br />
&lt;li&gt;&lt;a href=&quot;Russ.html&quot;&gt;Russ&lt;/a&gt;&lt;/li&gt;<br />
&lt;img src=&quot;Images/dott_1.png&quot; /&gt;<br />
&lt;li&gt;&lt;a href=&quot;Music.html&quot;&gt;Music&lt;/a&gt;&lt;/li&gt;<br />
&lt;img src=&quot;Images/dott_1.png&quot; /&gt;<br />
&lt;li&gt;&lt;a href=&quot;Contact.html&quot;&gt;Contact Me&lt;/a&gt;&lt;/li&gt;<br />
  &lt;/ul&gt;<br />
<br />
&lt;img id=&quot;skille1&quot; src=&quot;Images/skille.png&quot; /&gt;<br />
   &lt;br/&gt;<br />
    <br />
  &lt;/div&gt;<br />
    &lt;!-- end #header --&gt;<br />
<br />
<br />
  <br />
  <br />
  &lt;div id=&quot;mainContent&quot;&gt;&lt;!-- InstanceBeginEditable name=&quot;Hovedinnhold&quot; --&gt;<br />
  <br />
  <br />
  <br />
 <br />
  <br />
  <br />
  &lt;!-- end #mainContent --&gt;<br />
  &lt;!-- InstanceEndEditable --&gt;&lt;/div&gt;<br />
  <br />
&lt;div id=&quot;rightcontainer&quot;&gt;<br />
<br />
&lt;?php<br />
<br />
// calling session_start() the function which starts our authentication session<br />
session_start();<br />
<br />
// connecting to mysql server<br />
$l = mysql_connect  ( &quot;vanhansendesign.com.mysql&quot; , &quot;vanhansendesign&quot; , &quot;ketpia007&quot; ) or die(&quot;Error connecting:&lt;BR&gt;&lt;BR&gt;&quot;.mysql_error());<br />
mysql_select_db( &quot;vanhansendesign&quot; ) or die(&quot;Error getting db:&lt;BR&gt;&lt;BR&gt;&quot;.mysql_error());<br />
<br />
// defining getShouts() which is our function that gets all of our shouts<br />
function getShouts()<br />
{<br />
<br />
    echo '&lt;div align=&quot;center&quot;&gt;<br />
        &lt;table width=&quot;150&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;<br />
          &lt;tr&gt;<br />
            &lt;td&gt;<br />
    ';    <br />
    <br />
    $query = mysql_query(&quot;SELECT * FROM shouts ORDER BY id DESC LIMIT 10&quot;) or die(mysql_error());<br />
    while ($row = mysql_fetch_array($query) )<br />
    {<br />
        <br />
        $name = stripslashes($row['Name']);<br />
        $contact = stripslashes($row['Contact']);<br />
        $shout = stripslashes($row['Shout']);<br />
        <br />
        if(empty($contact))<br />
        {<br />
        <br />
            echo '&lt;p&gt;&lt;span class=&quot;author&quot;&gt;'.$name.'&lt;/span&gt; - &lt;span class=&quot;shout&quot;&gt;'.$shout.'&lt;/span&gt;&lt;/p&gt;';<br />
            <br />
        } else {<br />
        <br />
            echo '&lt;p&gt;&lt;span class=&quot;author&quot;&gt;&lt;a href=&quot;'.$contact.'&quot; target=&quot;_blank&quot;&gt;'.$name.'&lt;/a&gt;&lt;/span&gt; - &lt;span class=&quot;shout&quot;&gt;'.$shout.'&lt;/span&gt;&lt;/p&gt;';<br />
<br />
        } // if empty contact<br />
                <br />
    } // while row mysqlfetcharray query<br />
    <br />
    echo '&lt;br&gt;&lt;br&gt;';<br />
    <br />
    echo '<br />
            &lt;/td&gt;<br />
          &lt;/tr&gt;<br />
          &lt;tr&gt;<br />
            &lt;td height=&quot;10&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />
            &lt;form name=&quot;shout&quot; method=&quot;post&quot; action=&quot;shout.php&quot;&gt;<br />
              &lt;div align=&quot;center&quot;&gt;<br />
                &lt;input name=&quot;name&quot; type=&quot;text&quot; id=&quot;name&quot; value=&quot;Name&quot; size=&quot;25&quot; maxlength=&quot;10&quot;&gt;&lt;br&gt;<br />
                &lt;input name=&quot;contact&quot; type=&quot;text&quot; id=&quot;contact&quot; value=&quot;http://&quot; size=&quot;25&quot;&gt;&lt;br&gt;<br />
                &lt;input name=&quot;message&quot; type=&quot;text&quot; id=&quot;message&quot; value=&quot;Message&quot; size=&quot;25&quot;&gt;&lt;br&gt;<br />
                &lt;input name=&quot;shout&quot; type=&quot;submit&quot; id=&quot;shout&quot; value=&quot;Shout!&quot;&gt;<br />
              &lt;/div&gt;<br />
            &lt;/form&gt;<br />
            &lt;/td&gt;<br />
          &lt;/tr&gt;<br />
          &lt;/table&gt;<br />
          &lt;/div&gt;<br />
        ';    <br />
<br />
} // function getshouts<br />
<br />
<br />
// our processing if control statement<br />
if ( isset ( $_POST['shout'] ) )<br />
{<br />
    <br />
    $name = addslashes($_POST['name']);<br />
    $contact = addslashes($_POST['contact']);<br />
    $message =  $_POST['message'];<br />
    <br />
    if ( ( isset($name) ) &amp;&amp; ( isset($message) ) )<br />
    {<br />
        <br />
        // getting smilie list<br />
        $smilies = mysql_query(&quot;SELECT * FROM smilies&quot;) or die(mysql_error());<br />
        while($get = mysql_fetch_array ($smilies))<br />
        {<br />
            <br />
            $alt = $get['Alt'];<br />
            $smilie = $get['URL'];<br />
            <br />
            $message = str_replace( $get['Symbol'] , '&lt;img src=&quot;smilies/'.$smilie.'&quot; border=&quot;0&quot; width=&quot;15&quot; height=&quot;15&quot; alt=&quot;'.$alt.'&quot;&gt;' , $message);<br />
            $themessage = addslashes($message);<br />
            <br />
            // replacing all smilies<br />
                    <br />
        }<br />
    <br />
        mysql_query(&quot;INSERT INTO shouts (Name, Contact, Shout) VALUES ( '$name' , '$contact' , '$message' )&quot;) or die(mysql_error());<br />
        $_SESSION['has_posted'] = 'yes';<br />
        header(&quot;Location: shout.php&quot;);<br />
        <br />
        // if required fields aren't empty, process into database<br />
        <br />
    } else {<br />
    <br />
        echo '&lt;script&gt;alert(&quot;Some fields were not filled out!&quot;);&lt;/script&gt;';<br />
        header(&quot;Location: shout.php&quot;);<br />
        <br />
        // if required fields were left empty, show an error dialog<br />
        <br />
    }<br />
<br />
}/* else {<br />
<br />
    echo '&lt;script&gt;alert(&quot;Please follow the form to this page.&quot;);&lt;/script&gt;';<br />
    header(&quot;Location: shout.php&quot;);<br />
    <br />
    // if they weren't even referred from the form, show error dialog and redirect<br />
<br />
} // if isset post shout<br />
<br />
/* STARTING THE MAIN SCRIPT NOW */<br />
<br />
// starting the table<br />
<br />
//displaying the shouts<br />
getShouts();<br />
<br />
<br />
mysql_close($l);<br />
<br />
<br />
?&gt;<br />
<br />
&lt;/div&gt;  <br />
  <br />
  <br />
  &lt;div id=&quot;footer&quot;&gt;<br />
  <br />
&lt;br/&gt;<br />
<br />
&lt;img src=&quot;Images/skille.png&quot; /&gt;<br />
&lt;br /&gt;<br />
<br />
Contact me; <br />
&lt;!-- #BeginLibraryItem &quot;/Library/Email.lbi&quot; --&gt;E-mail: <a href="mailto:stian@vanhansendesign.com">stian@vanhansendesign.com</a>&lt;!-- #EndLibraryItem --&gt; <br />
or <br />
&lt;!-- #BeginLibraryItem &quot;/Library/TLF.lbi&quot; --&gt;TLF: 46785254&lt;!-- #EndLibraryItem --&gt;<br />
&lt;br/&gt;<br />
&lt;br/&gt; <br />
<br />
&lt;!-- end #footer --&gt;&lt;/div&gt;<br />
&lt;!-- end #container --&gt;&lt;/div&gt;<br />
<br />
<br />
&lt;/body&gt;<br />
&lt;!-- InstanceEnd --&gt;<br />
<br />
 &lt;p&gt;Smilie administration: &lt;a href=&quot;file:///Macintosh HD/Users/stianhansen/Downloads/php-shoutbox.zip Folder/admin.php?mode=add&quot;&gt;add smilie&lt;/a&gt; | &lt;a href=&quot;file:///Macintosh HD/Users/stianhansen/Downloads/php-shoutbox.zip Folder/admin.php?mode=delete&quot;&gt;delete smilie&lt;/a&gt;&lt;/p&gt;<br />
 &lt;p&gt;Shoutbox administration: &lt;a href=&quot;file:///Macintosh HD/Users/stianhansen/Downloads/php-shoutbox.zip Folder/admin.php?mode=clear&quot;&gt;clear shoutbox&lt;/a&gt; | &lt;a href=&quot;file:///Macintosh HD/Users/stianhansen/Downloads/php-shoutbox.zip Folder/admin.php?mode=logout&quot;&gt;logout&lt;/a&gt;&lt;/p&gt;<br />
 &lt;table width=&quot;600&quot; border=&quot;1&quot; cellpadding=&quot;5&quot; bordercolor=&quot;#CCCCCC&quot;&gt;<br />
   &lt;tr&gt;<br />
     &lt;td&gt;&lt;?php selectAction($_GET['mode']); ?&gt;&lt;/td&gt;<br />
   &lt;/tr&gt;<br />
 &lt;/table&gt;<br />
 <br />
 &lt;?php<br />
<br />
// showing login form<br />
} else {<br />
<br />
    echo '<br />
        &lt;form action=&quot;admin.php&quot; method=&quot;post&quot; name=&quot;login&quot;&gt;<br />
        &lt;input name=&quot;username&quot; type=&quot;text&quot; value=&quot;username&quot; size=&quot;25&quot; maxlength=&quot;32&quot;&gt;&lt;br&gt;<br />
        &lt;input name=&quot;password&quot; type=&quot;password&quot; value=&quot;password&quot; size=&quot;25&quot; maxlength=&quot;32&quot;&gt;&lt;br&gt;<br />
        &lt;input name=&quot;login&quot; type=&quot;submit&quot; value=&quot;login&quot;&gt;<br />
        &lt;/form&gt;<br />
    ';<br />
    <br />
}<br />
<br />
mysql_close($l);<br />
<br />
?&gt;<br />
<br />
&lt;/html&gt;</div>

]]></content:encoded>
			<category domain="http://forums.biorust.com/html-php-asp-js/">HTML / PHP / ASP / JS</category>
			<dc:creator>vanhansen</dc:creator>
			<guid isPermaLink="true">http://forums.biorust.com/html-php-asp-js/8770-php-shoutbox-problems.html</guid>
		</item>
		<item>
			<title>Html 5</title>
			<link>http://forums.biorust.com/html-php-asp-js/8754-html-5-a.html</link>
			<pubDate>Thu, 05 Nov 2009 13:32:19 GMT</pubDate>
			<description>Hello BioRUST, 
 
Has anyone taken a look at HTML5? 
 
 
---Quote (Originally by Wikipedia)--- 
*HTML5* is the next major revision of HTML (Hypertext Markup Language), the core markup language of the World Wide Web. The Web Hypertext Application Technology Working Group (WHATWG) started work on the...</description>
			<content:encoded><![CDATA[<div>Hello BioRUST,<br />
<br />
Has anyone taken a look at HTML5?<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				<div>
					Originally Posted by <strong>Wikipedia</strong>
					
				</div>
				<div style="font-style:italic"><b>HTML5</b> is the next major revision of HTML (Hypertext Markup Language), the core markup language of the World Wide Web. The Web Hypertext Application Technology Working Group (WHATWG) started work on the specification in June 2004 under the name Web Applications 1.0. As of October 2009, the specification is in the &quot;Last Call&quot; state at the WHATWG.</div>
			
			<hr />
		</td>
	</tr>
	</table>
</div>So, what do you think?  Are you impressed with the revamp of HTML?  What features are you most excited about?  Which features do you not like?<br />
<br />
Alex</div>

]]></content:encoded>
			<category domain="http://forums.biorust.com/html-php-asp-js/">HTML / PHP / ASP / JS</category>
			<dc:creator>ahstanford</dc:creator>
			<guid isPermaLink="true">http://forums.biorust.com/html-php-asp-js/8754-html-5-a.html</guid>
		</item>
		<item>
			<title>Collapsing And Expanding Menu</title>
			<link>http://forums.biorust.com/html-php-asp-js/8649-collapsing-expanding-menu.html</link>
			<pubDate>Fri, 14 Aug 2009 04:50:31 GMT</pubDate>
			<description><![CDATA[I was wondering where I could find a good tutorial on a php / ajax expandable and collapsable menu. 
 
Most of the ones I've found rely ENTIRELY on javascript. Which is all right, but I'm looking for something a little php based. 
 
I'm trying to build a menu with the hyper link, and next to it is...]]></description>
			<content:encoded><![CDATA[<div>I was wondering where I could find a good tutorial on a php / ajax expandable and collapsable menu.<br />
<br />
Most of the ones I've found rely ENTIRELY on javascript. Which is all right, but I'm looking for something a little php based.<br />
<br />
I'm trying to build a menu with the hyper link, and next to it is an image that drops down the menu when clicking it.<br />
<br />
<br />
The expandable and collapsable menu tutorial by Scrowler on Biorust is very nice. The problem is that it uses arrays, causing the page to reload when expanding / collapsing the menu.<br />
<br />
Thanks for any help.</div>

]]></content:encoded>
			<category domain="http://forums.biorust.com/html-php-asp-js/">HTML / PHP / ASP / JS</category>
			<dc:creator>smw</dc:creator>
			<guid isPermaLink="true">http://forums.biorust.com/html-php-asp-js/8649-collapsing-expanding-menu.html</guid>
		</item>
	</channel>
</rss>
