<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ZoneArtCSS &#124; Desarrollo Web, Diseño de páginas Web, Aplicaciones Móviles, Notas de Tecnología &#187; sesiones multiuruario</title>
	<atom:link href="http://www.zoneartcss.com/tag/sesiones-multiuruario/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zoneartcss.com</link>
	<description>Tips de Diseño y Desarrollo Web</description>
	<lastBuildDate>Wed, 26 Oct 2011 18:31:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Simple Inicio de Sesión con Php y Mysql</title>
		<link>http://www.zoneartcss.com/webdevelopment/programacion-con-style/simple-inicio-de-sesion-con-php-y-mysql/</link>
		<comments>http://www.zoneartcss.com/webdevelopment/programacion-con-style/simple-inicio-de-sesion-con-php-y-mysql/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 20:17:37 +0000</pubDate>
		<dc:creator>miguelortega</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Programación con Style]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[como crear un sistema de login]]></category>
		<category><![CDATA[con php y mysql]]></category>
		<category><![CDATA[crear login]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[inicio de sesion php]]></category>
		<category><![CDATA[multiusuario]]></category>
		<category><![CDATA[sesiones multiuruario]]></category>

		<guid isPermaLink="false">http://www.zoneartcss.com/?p=928</guid>
		<description><![CDATA[Pequeño y simple sistema de Login con PHP y MySql Se que esto es demasiado fácil y sencillo para este blog, que con mucho esfuerzo publicamos por el corto tiempo que tenemos libre, pero este codigo se que a muchas personas les va a ayudar por la sencillez y simplitud para poder explicar el famoso tema de inicios de sesión simple. Primero creamos un archivo llamado index.php En este archivo pondremos el formulario con sus [...]]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p style="text-align: center;"><img class="aligncenter" src="http://zoneartcss.com/wp-content/login_php_mysql.jpg" alt="Crear login para tu sitio web" width="500" height="130" /></p>
<h4 style="text-align: center;"><span style="color: #ff9900;">Pequeño y simple sistema de Login con PHP y MySql</h4>
<p>Se que esto es demasiado fácil y sencillo para este blog, que con mucho esfuerzo publicamos por el corto tiempo que tenemos libre, pero este codigo se que a muchas personas les va a ayudar por la sencillez y simplitud para poder explicar el famoso tema de inicios de sesión simple.<br />
<span id="more-928"></span></p>
<h4 style="text-align: center;"><span style="color: #ff9900;">Primero creamos un archivo llamado index.php</h4>
<p>En este archivo pondremos  el formulario con sus respectivas casillas de usuario y contraseña con un botón de &#8220;Iniciar sesión&#8221;. y en este mismo archivo validados sencillamente el usuario y pass (ojo les recuerdo que ese tipo de inicio de sesión hay que validad bien las variables pro que si no te podrán hacer fácilmente una inyección mysql)</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Sistema de Administración&lt;/title&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;table width=&quot;100%&quot; height=&quot;100%&quot; border=&quot;0&quot;&gt;
  &lt;tr&gt;
    &lt;td&gt;        
&lt;h5 align=&quot;center&quot;&gt;
  <span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;acceso&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">&quot;AIUFCHMSEUFCNSMUDFH&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000088;">$datos</span><span style="color: #339933;">=</span><span style="color: #000088;">$_POST</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$nombre</span><span style="color: #339933;">=</span><span style="color: #000088;">$datos</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'nombre'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$clave</span><span style="color: #339933;">=</span><span style="color: #000088;">$datos</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'clave'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;SELECT * FROM date_sistem WHERE  usuario='&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$nombre</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;' AND clave='&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$clave</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&quot;</span> <span style="color: #339933;">;</span>
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">,</span> <span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_num_rows</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		  <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_row</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
		  <span style="color: #009900;">&#123;</span>
				<span style="color: #990000;">die</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;script&gt;window.location = 'login.php?user=747524527000245'&lt;/script&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
		  <span style="color: #009900;">&#125;</span>
   <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
   			<span style="color: #b1b100;">print</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;El usuario y/o la clave no son válidos&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #990000;">mysql_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/h5&gt;&lt;form name=&quot;form1&quot; target=&quot;_self&quot; method=&quot;post&quot; action=&quot;index.php?acceso=AIUFCHMSEUFCNSMUDFH&quot;&gt;
&lt;table width=&quot;255&quot; height=&quot;127&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; background=&quot;images/fondo_login.png&quot;&gt;
                    &lt;tr&gt;
                      &lt;td class=&quot;text&quot;&gt;&amp;nbsp;&lt;/td&gt;
                      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                        &lt;td width=&quot;90&quot; class=&quot;text&quot;&gt;
                            &lt;p align=&quot;right&quot;&gt;Usuario:&lt;/p&gt;						&lt;/td&gt;
                        &lt;td width=&quot;151&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;nombre&quot;&gt;&lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                        &lt;td width=&quot;90&quot; class=&quot;text&quot;&gt;
                            &lt;p align=&quot;right&quot;&gt;Contraseña:&lt;/p&gt;						&lt;/td&gt;
                        &lt;td width=&quot;151&quot;&gt;
							&lt;input type=&quot;password&quot; name=&quot;clave&quot;&gt;						&lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                      &lt;td class=&quot;text&quot;&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input type=&quot;submit&quot; name=&quot;formbutton1&quot; value=&quot;Iniciar Sesi&amp;oacute;n !!&quot;&gt;&lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                        &lt;td width=&quot;90&quot; class=&quot;text&quot;&gt;&lt;/td&gt;
                        &lt;td width=&quot;151&quot;&gt;&amp;nbsp;&lt;/td&gt;
                    &lt;/tr&gt;
  &lt;/table&gt;
&lt;/form&gt;	&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
&nbsp;
&lt;/body&gt;
&lt;/html&gt;
&nbsp;
Espero que les sea de utilidad, cualquier cosa que escriban sus dudas en la parte de abajo de los comentarios.</pre></div></div>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.zoneartcss.com/webdevelopment/programacion-con-style/simple-inicio-de-sesion-con-php-y-mysql/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

