<?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"
	>

<channel>
	<title>Sitio Sector Web</title>
	<atom:link href="http://www.sectorweb.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sectorweb.net</link>
	<description>En este sitio podras encontrar distintos tutoriales, recursos, notas, curiosidades etc etc del mundo del desarrolllo y diseño web</description>
	<pubDate>Thu, 21 Feb 2008 00:35:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Como hacer un sistema de usuarios con PHP y MySQL</title>
		<link>http://www.sectorweb.net/2008/01/17/como-hacer-un-sistema-de-usuarios-con-php-y-mysql/</link>
		<comments>http://www.sectorweb.net/2008/01/17/como-hacer-un-sistema-de-usuarios-con-php-y-mysql/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 05:55:39 +0000</pubDate>
		<dc:creator>Rodrigo-Λzul</dc:creator>
		
		<category><![CDATA[PHP y mySQL]]></category>

		<guid isPermaLink="false">http://www.sectorweb.net/2008/01/17/como-hacer-un-sistema-de-usuarios-con-php-y-mysql/</guid>
		<description><![CDATA[
Desde hace ya un buen tiempo queria hacer un tutorial de php y mysql pero la falta de tiempo y algunos imprevistos me lo habian impedido, en este tutorial aprenderan algunas cosas basicas y no tan basicas de lo que es php y mySQL, jugaran con html y php, aprenderan a usar las tablas y [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><a href="http://www.sectorweb.net/2008/01/17/como-hacer-un-sistema-de-usuarios-con-php-y-mysql/"><img src="http://www.sectorweb.net/tutoriales/sistemausuarios/principal.gif" title="php y MYSQL" alt="pphp y MYSQL" border="0" /></a></p>
<p>Desde hace ya un buen tiempo queria hacer un tutorial de php y mysql pero la falta de tiempo y algunos imprevistos me lo habian impedido, en este tutorial aprenderan algunas cosas basicas y no tan basicas de lo que es php y mySQL, jugaran con html y php, aprenderan a usar las tablas y bases de datos, todo en este tutorial, espero no haber hecho mal jijiji de todos modos cualquier duda o problema por favor <a href="http://www.foro.sectorweb.net/"><strong>comentenlo en el Foro</strong></a> o visiten <a href="http://www.php.net/" target="_blank"><strong>http://www.php.net</strong></a> ahi podran buscar lo que significa cada sentencia, bueno los dejo con esto que les prepare. <span id="more-73"></span></p>
<h2>Si ya te la sabes, de una vez bajatelo ñaja!<img src="http://www.sectorweb.net/imagenes/zip.gif" border="0" /><a href="http://www.sectorweb.net/tutoriales/sistemausuarios/sesion.zip">Sistema de Usuarios<img src="http://www.sectorweb.net/imagenes/zip.gif" border="0" /></a></h2>
<p class="step"><span class="steptitle">Paso 1</span>Crear una base de datos, desde tu panel de administración, asignarle un usuario y un password.</p>
<p style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/sistemausuarios/1.gif" /></p>
<p class="step"><span class="steptitle">Paso 2</span>Ingresar a phpMyAdmin, seleccionar la base de datos que creamos ir al menu superios SQL y ejecutar la siguiente consulta o el .sql que viene en la carpeta, para crear la tabla usuarios.</p>
<div class="igBar"><span id="lmysql-9"><a href="#" onclick="javascript:showCodeTxt('mysql-9'); return false;">Ver codigo en Texto - Recomendable</a></span></div>
<div class="syntax_hilite"><span class="langName">MySQL:</span>
<div id="mysql-9">
<div class="mysql">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #993333; font-weight: bold;">CREATE TABLE</span> usuarios <span style="color: #66cc66;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">`id` <span style="color: #aa9933; font-weight: bold;">TINYINT</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">4</span><span style="color: #66cc66;">&#41;</span> <span style="color: #aa3399; font-weight: bold;">AUTO_INCREMENT</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">`nombre` <span style="color: #aa9933; font-weight: bold;">TEXT</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">`apaterno` <span style="color: #aa9933; font-weight: bold;">TEXT</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">`amaterno` <span style="color: #aa9933; font-weight: bold;">TEXT</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">`login` <span style="color: #aa9933; font-weight: bold;">CHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">40</span><span style="color: #66cc66;">&#41;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">`password` <span style="color: #aa9933; font-weight: bold;">CHAR</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">20</span><span style="color: #66cc66;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">`email` <span style="color: #aa9933; font-weight: bold;">TEXT</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #aa3399; font-weight: bold;">UNIQUE</span> <span style="color: #66cc66;">&#40;</span>id<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/sistemausuarios/2.gif" /></p>
<p class="step"><span class="steptitle">Paso 3</span>Una ves creada la tabla, creamos nuestro archivo de registro el cual llamaremos <strong>form.html</strong>, tendra un formulario con los siguientes campos y este se encargara de enviar todas las variables por el metodo POST al archivo crea_usuarios.php (las variables son el parametro que tiene <strong>nane=</strong> en cada input). El metodo POST es usado para pasar variables sin que nadie las vea hagan de cuenta que las pasa por debajo y el metodo GET las pasa por medio de la URL ejemplo: http://www.sectorweb.net/post.php?action=edit&amp;post=73</p>
<div class="igBar"><span id="lhtml-10"><a href="#" onclick="javascript:showCodeTxt('html-10'); return false;">Ver codigo en Texto - Recomendable</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-10">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/form.html"><span style="color: #000000; font-weight: bold;">&lt;form</span></a> <span style="color: #000066;">action</span>=<span style="color: #ff0000;">"crea_usuarios.php"</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">"post"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span> Login(nick):</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"login"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form&gt;</span></span> <span style="color: #009900;"><a href="http://december.com/html/4/element/form.html"><span style="color: #000000; font-weight: bold;">&lt;form</span></a> <span style="color: #000066;">action</span>=<span style="color: #ff0000;">"crea_usuarios.php"</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">"post"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Password:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"pass1"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"password"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form&gt;</span></span> <span style="color: #009900;"><a href="http://december.com/html/4/element/form.html"><span style="color: #000000; font-weight: bold;">&lt;form</span></a> <span style="color: #000066;">action</span>=<span style="color: #ff0000;">"crea_usuarios.php"</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">"post"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Repite Password:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"pass2"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"password"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Nombre:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"nombre"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Apellido Paterno:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"apaterno"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span>Apellido Materno:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"amaterno"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span>E-mail:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"email"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span> <span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;">&lt;input</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"Crear"</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"submit"</span> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span> <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/sistemausuarios/3e.gif" border="1" /></p>
<p class="step"><span class="steptitle">Paso 4</span>Configurar nuestro archivo <strong>config.php</strong> el cual contiene todos los datos de autentificacion de nuestra base de datos, solo hay que asignarle a las variables los datos de la base de datos el usuario y la contraseña y el server que casi siempre es localhost.</p>
<div class="igBar"><span id="lphp-11"><a href="#" onclick="javascript:showCodeTxt('php-11'); return false;">Ver codigo en Texto - Recomendable</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-11">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;? <span style="color:#000000;">$server</span>=<span style="color:#FF0000;">"localhost"</span>; <span style="color:#ff9900;">/* Nuestro server mysql */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$database</span>=<span style="color:#FF0000;">"fu000207_pruebas"</span>; <span style="color:#ff9900;">/* Nuestra base de datos */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$dbpass</span>=<span style="color:#FF0000;">"password"</span>; <span style="color:#ff9900;">/*Nuestro password mysql */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$dbuser</span>=<span style="color:#FF0000;">"fu000207_usuario"</span>; <span style="color:#ff9900;">/* Nuestro user mysql */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">?&amp;gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p class="step"><span class="steptitle">Paso 5</span>Es hora de crear el archivo <strong>crea_usuarios.php</strong>. El formulario nos avento las variables ahora solo hay que cacharlas jajaja, bueno para atraparlas utilizaremos la veriable de servidor $_POST una ves atrapado se lo asignamos a una nueva variable, algo asi<strong> $login = $_POST['login'];</strong> aqui ya tenemos el valor del nick dentro de la variable $login, una ves hecho eso con todas las varibles asiganmos a la variable <strong>$query</strong> la siguiente consulta: <strong>SELECT * FROM usuarios WHERE login=</strong>'<strong>$login</strong>' la cual nos dice: Selecciona todos los campos(*) de la tabla usuarios donde el campo login sea igual al valor de nuestra variable login, hacemos nuestra conexion y se la asiganmos a la variable <strong>$link</strong> ahora detonamos la consulta y la almacenamos en <strong>$result</strong> hecho esto hacemos la siguiente decisión: <strong>if(mysql_num_rows($result))</strong> la cual nos devolvera un valor boleano (verdadero o falso) si es verdadero significa que encontro al menos un elemento en la base de datos que coincide con nuestra variable $login, esto significa que ya hay un usuario con ese nick entonces envia un mensaje pidiendo cambiar el nick, si no existe nadie en la base de datos entonces hay que comparar si las variables del password coinciden o no, si no coinciden envia un mensaje de alerta y si si son iguales encripta el password en funcion de la palabra "semilla" ahora introduciremos los valores de las variables en la base de datos, la instruccion es : <strong>INSERT INTO usuarios (login, nombre, apaterno, amaterno, password, email) VALUES ('$login','$nombre','$apaterno', '$amaterno','$pass1','$email')</strong> y se la asignamos a la variable <strong>$query</strong>, la cual nos dice Insertar en la tabla usuarios en el campo login,nombre,apaterno,amaterno,password,email los valores de las variables $login,$nombre,$apaterno, $amaterno,$pass1,$email, cabe mencionar que hay que revisar el orden que tienen y que coincidan los campos con las variables, comunmente no inserta por ese detalle, ahora ejecutamos esa instruccion y la almacenamos en $result ahora hacemos la siguiente decision: <strong>if(mysql_affected_rows($link))</strong> el cual nos devuelvera el número de filas afectadas en la ultima sentencia INSERT si es mayor a 0 entonces devolvera true, y enviara el mensaje que se introducieron y si no enviara que hubo error.</p>
<div class="igBar"><span id="lphp-12"><a href="#" onclick="javascript:showCodeTxt('php-12'); return false;">Ver codigo en Texto - Recomendable</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-12">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;? <span style="color:#616100;">include</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"config.php"</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#ff9900;">/*Traemos el archivo config*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#ff9900;">/*Recibimos las variables por el metodo POST*/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$login</span> = <span style="color:#000000;">$_POST</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'login'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$pass1</span> = <span style="color:#000000;">$_POST</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'pass1'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$pass2</span> = <span style="color:#000000;">$_POST</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'pass2'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$nombre</span>= <span style="color:#000000;">$_POST</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'nombre'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$apaterno</span>= <span style="color:#000000;">$_POST</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'apaterno'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$amaterno</span>= <span style="color:#000000;">$_POST</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'amaterno'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$email</span> = <span style="color:#000000;">$_POST</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'email'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#ff9900;">/*Hacemos la consulta */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$query</span>=<span style="color:#FF0000;">"SELECT * FROM usuarios WHERE login='$login'"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$link</span>=<a href="http://www.php.net/mysql_connect"><span style="color:#000066;">mysql_connect</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$server</span>,<span style="color:#000000;">$dbuser</span>,<span style="color:#000000;">$dbpass</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$result</span>=<a href="http://www.php.net/mysql_db_query"><span style="color:#000066;">mysql_db_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$database</span>,<span style="color:#000000;">$query</span>,<span style="color:#000000;">$link</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/mysql_num_rows"><span style="color:#000066;">mysql_num_rows</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$result</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"El usuario ya existe en la BD"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/mysql_free_result"><span style="color:#000066;">mysql_free_result</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$result</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#ff9900;">/* Ahora comprovamos que los dos pass coinciden */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$pass1</span>!=<span style="color:#000000;">$pass2</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Los passwords deben coincidir</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">'Clica &lt;a href=&quot;http://www.sectorweb.net/form.html&quot;&gt;aquí&lt;/a&gt; para volver al formulario'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$pass1</span>=<a href="http://www.php.net/crypt"><span style="color:#000066;">crypt</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$pass2</span>, <span style="color:#FF0000;">"semilla"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#ff9900;">/* Encripatmos el password, con la clave &quot;semilla&quot; */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$query</span>=<span style="color:#FF0000;">"INSERT INTO usuarios (login, nombre, apaterno, amaterno, password, email) VALUES ('$login','$nombre','$apaterno', '$amaterno','$pass1','$email')"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$result</span>=<a href="http://www.php.net/mysql_db_query"><span style="color:#000066;">mysql_db_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$database</span>,<span style="color:#000000;">$query</span>,<span style="color:#000000;">$link</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/mysql_affected_rows"><span style="color:#000066;">mysql_affected_rows</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$link</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Usuario introducido correctamente"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Error introduciendo el usuario"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#ff9900;">/* Cierre del else */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#ff9900;">/* Cierre del else que corresponde a if(mysql_affected_rows.....) */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#ff9900;">/* Cierre del else que corresponde a if(mysql_num_rows...) */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">?&amp;gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p class="step"><span class="steptitle">Paso 6</span>Parece que si ingreso los datos, pero vamos a comprobarlo de todos modos, para eso vamos a phpMyAdmin seleciconamos nuestra base de datos clicleamos en el recuadro que esta junto a la tabla y automaticamente nos trae todos los datos introducidos en esa tabla. Si no hay nada verifica que hiciste bien tu INSERT INTO y que tus variables tengan valores</p>
<p style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/sistemausuarios/3.gif" border="1" /></p>
<p style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/sistemausuarios/4.gif" /></p>
<p style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/sistemausuarios/5.gif" /></p>
<p class="step"><span class="steptitle">Paso 7</span>Vamos a hacer nuestra pagina de <strong>login.php, </strong>primero verificamos si ya esta iniciada la sesión, si si entonces redirecciona a la pagina user.php que acontinuacion crearemos, si no se a iniciado la sesión entonces  imprime el formulario el cual enviara todos los datos a comprueba.php el cual se encargara de revisar si esta en la base de datos.</p>
<div class="igBar"><span id="lphp-13"><a href="#" onclick="javascript:showCodeTxt('php-13'); return false;">Ver codigo en Texto - Recomendable</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-13">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;? <a href="http://www.php.net/session_start"><span style="color:#000066;">session_start</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/isset"><span style="color:#000066;">isset</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$SESSION</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/header"><span style="color:#000066;">header</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"location:user.php"</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#ff9900;">/* Si ha iniciado la sesion, vamos a user.php */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#ff9900;">/* Cerramos la parte de codigo PHP porque vamos a escribir bastante HTML y nos será mas cómodo así que metiendo echo's */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">?&amp;gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;meta http-equiv=<span style="color:#FF0000;">"Content-Type"</span> content=<span style="color:#FF0000;">"text/html; charset=ISO-8859-1"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;h1&gt;Identificación&lt;/h1&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;form action=<span style="color:#FF0000;">"comprueba.php"</span> method=<span style="color:#FF0000;">"post"</span> <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"miform"</span>&gt; Login:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;input name=<span style="color:#FF0000;">"login"</span> type=<span style="color:#FF0000;">"text"</span> /&gt;Password:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;input name=<span style="color:#FF0000;">"pass"</span> type=<span style="color:#FF0000;">"password"</span> /&gt; &lt;input value=<span style="color:#FF0000;">"Entrar"</span> <span style="color:#000000; font-weight:bold;">class</span>=<span style="color:#FF0000;">"boton"</span> type=<span style="color:#FF0000;">"submit"</span> /&gt; &lt;/form&gt;<span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#ff9900;">/* Y cerramos el else */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">?&amp;gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/sistemausuarios/6.gif" border="1" /></p>
<p class="step"><span class="steptitle">Paso 8</span>Crear el archivo <strong>comprueba.php</strong> este recibira las dos variables por el metodo POST, hara la consulta y si devuelve un valor igual a 0 osea ningun usuario enviara un mensaje diciendo que no existe ese usuario y si no comprueba si el password encriptado con la palabra semilla es igual con el que esta en la base de datos si si entonces inica la session y le pasa las variables que ocuparemos a nuestra variable de servidor $_SESSION["nombre"]=$array["nombre"]; $array contiene un arreglo con los campos de ese usuario y hace un redireccionamiento al archivo user.php y si el password no es correcto envia un mensaje de password incorrecto .</p>
<div class="igBar"><span id="lphp-14"><a href="#" onclick="javascript:showCodeTxt('php-14'); return false;">Ver codigo en Texto - Recomendable</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-14">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;? <a href="http://www.php.net/session_start"><span style="color:#000066;">session_start</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">include</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"config.php"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$login</span> = <span style="color:#000000;">$_POST</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'login'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$pass</span> = <span style="color:#000000;">$_POST</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'pass'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$query</span>=<span style="color:#FF0000;">"SELECT * FROM usuarios WHERE login='$login'"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$link</span>=<a href="http://www.php.net/mysql_connect"><span style="color:#000066;">mysql_connect</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$server</span>,<span style="color:#000000;">$dbuser</span>,<span style="color:#000000;">$dbpass</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$result</span>=<a href="http://www.php.net/mysql_db_query"><span style="color:#000066;">mysql_db_query</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$database</span>,<span style="color:#000000;">$query</span>,<span style="color:#000000;">$link</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/mysql_num_rows"><span style="color:#000066;">mysql_num_rows</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$result</span><span style="color:#006600; font-weight:bold;">&#41;</span>==<span style="color:#CC66CC;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"No existe el login introducido"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$array</span>=<a href="http://www.php.net/mysql_fetch_array"><span style="color:#000066;">mysql_fetch_array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$result</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$array</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"password"</span><span style="color:#006600; font-weight:bold;">&#93;</span>==<a href="http://www.php.net/crypt"><span style="color:#000066;">crypt</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$pass</span>,<span style="color:#FF0000;">"semilla"</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#ff9900;">/* Comprobamos que el password encriptado en la BD coincide con el password que nos han dado al encriptarlo. Recuerda usar semilla para encriptar los dos passwords. */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$_SESSION</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"login"</span><span style="color:#006600; font-weight:bold;">&#93;</span>=<span style="color:#000000;">$login</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$_SESSION</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"nombre"</span><span style="color:#006600; font-weight:bold;">&#93;</span>=<span style="color:#000000;">$array</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"nombre"</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$_SESSION</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"apaterno"</span><span style="color:#006600; font-weight:bold;">&#93;</span>=<span style="color:#000000;">$array</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"apaterno"</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000;">$_SESSION</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"amaterno"</span><span style="color:#006600; font-weight:bold;">&#93;</span>=<span style="color:#000000;">$array</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"amaterno"</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/header"><span style="color:#000066;">header</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"location:user.php"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Password incorrecto!"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#ff9900;">/* Cerramos este ultimo else */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#ff9900;">/* Cerramos el else que corresponde a la comprobación de que el login existe */</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">?&amp;gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p class="step"><span class="steptitle">Paso 8</span>Crear la pagina de <strong>user.php </strong>este contendra las variables que le pasamos desde el archivo comprueba.php y solo sera visto por usuarios que se hayan identificado correctamente, primero comprueba si se a iniciado sesion si no redirecciona a login y si si imprime el contenido para el usuario</p>
<div class="igBar"><span id="lphp-15"><a href="#" onclick="javascript:showCodeTxt('php-15'); return false;">Ver codigo en Texto - Recomendable</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-15">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;? <a href="http://www.php.net/session_start"><span style="color:#000066;">session_start</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>!<a href="http://www.php.net/isset"><span style="color:#000066;">isset</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$_SESSION</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/header"><span style="color:#000066;">header</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"location:login.php"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">""</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&lt;h1&gt;SectorWeb.net&lt;/h1&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Bienvenido al Area de usurios: &lt;strong&gt;"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#000000;">$_SESSION</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"nombre"</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#FF0000;">" "</span>.<span style="color:#000000;">$_SESSION</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"apaterno"</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#FF0000;">" "</span>.<span style="color:#000000;">$_SESSION</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"amaterno"</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#FF0000;">" "</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;/strong&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">Has entrado con el nick: &lt;strong&gt; "</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#000000;">$_SESSION</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">"login"</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"&lt;/strong&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">Para cerrar la sesión, pulsa: &lt;a href="</span>http:<span style="color:#FF9933; font-style:italic;">//www.sectorweb.net/logout.php&quot;&gt;Aqui&lt;/a&gt;&quot;;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">""</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">?&amp;gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/sistemausuarios/7.gif" /></p>
<p class="step"><span class="steptitle">Paso 9</span>Crear la pagina de <strong>logout.php </strong>este se encargara de cerrar la sesion</p>
<div class="igBar"><span id="lphp-16"><a href="#" onclick="javascript:showCodeTxt('php-16'); return false;">Ver codigo en Texto - Recomendable</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-16">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;? <a href="http://www.php.net/session_start"><span style="color:#000066;">session_start</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>!<a href="http://www.php.net/isset"><span style="color:#000066;">isset</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000;">$_SESSION</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/header"><span style="color:#000066;">header</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"location:login.php"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/session_unset"><span style="color:#000066;">session_unset</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/session_destroy"><span style="color:#000066;">session_destroy</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">&lt;h1&gt;SectorWeb.net&lt;/h1&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF0000;">"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Las variables de sesión han sido eliminadas, y la sesión se ha dado por finalizada correctamente da click &lt;a href="</span>http:<span style="color:#FF9933; font-style:italic;">//www.sectorweb.net/%5C%22login.php%5C%22&quot;&gt;aqui para loguearte&lt;/a&gt;&quot;;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">?&amp;gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h2 align="center"><a href="http://www.sectorweb.net/tutoriales/sistemausuarios/ejemplo2/index.php" rel="gb_page_fs[]"><img src="http://www.sectorweb.net/imagenes/ej.gif" border="0" />Con JavaScript,un Captcha y envio de mails puedes hacer esto...pero eso es otra historia!<img src="http://www.sectorweb.net/imagenes/ej.gif" border="0" /></a></h2>
<h2 align="center">Espero que hayan aprendido un poco de php y mySQL jejeje , dudas y problemas en el foro porfavor! <img src='http://www.sectorweb.net/wp-includes/images/smilies/sonris.gif' alt=':D' class='wp-smiley' /> </h2>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorweb.net/2008/01/17/como-hacer-un-sistema-de-usuarios-con-php-y-mysql/feed/</wfw:commentRss>
		</item>
		<item>
		<title>1er Aniversario de SectorWeb</title>
		<link>http://www.sectorweb.net/2008/01/07/1er-aniversario-de-sectorweb/</link>
		<comments>http://www.sectorweb.net/2008/01/07/1er-aniversario-de-sectorweb/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 05:31:11 +0000</pubDate>
		<dc:creator>Rodrigo-Λzul</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.sectorweb.net/2008/01/07/1er-aniversario-de-sectorweb/</guid>
		<description><![CDATA[
Que rápido ha pasado el tiempo, un año de optimismo, de alegrías, desveladas, de sacrificio, de aprender con nuestro amigo google, de ver videotutoriales y tutoriales, de leer libros, de superarnos y ayudarnos entre si, un año donde hemos superado todas nuestras metas y retos, un añito de desarrollo aprendizaje y compañerismo! un año de [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: center"><a href="http://www.sectorweb.net/2008/01/07/1er-aniversario-de-sectorweb/"><img border="0" src="http://www.sectorweb.net/tutoriales/1aniversario/principal.jpg" /></a></div>
<p>Que rápido ha pasado el tiempo, un año de optimismo, de alegrías, desveladas, de sacrificio, de aprender con nuestro amigo google, de ver videotutoriales y tutoriales, de leer libros, de superarnos y ayudarnos entre si, un año donde hemos superado todas nuestras metas y retos, un añito de desarrollo aprendizaje y compañerismo! un año de SectorWeb. Y para festejarlo hice este fondo! de pantalla esperando que sea de su agrado, el cual refleja el poder que tenemos desde el momento que decidimos aprender por nuestra cuenta, ser diferentes y mejores cada dia, hice dos versiones una con mensaje en la parte superior y otra sin el mensaje.</p>
<p align="center"><strong>Con texto arriba</strong> <strong><br />
</strong></p>
<p align="center"><a target="_blank" href="http://www.sectorweb.net/tutoriales/1aniversario/1280x800.jpg">[1280x800]</a> <a target="_blank" href="http://www.sectorweb.net/tutoriales/1aniversario/1280x1024.jpg">[1280X1024]</a> <a target="_blank" href="http://www.sectorweb.net/tutoriales/1aniversario/1024x768.jpg">[1024X768]</a></p>
<p align="center"><strong>  Sin texto arriba</strong></p>
<p align="center"><a target="_blank" href="http://www.sectorweb.net/tutoriales/1aniversario/1280x800_2.jpg">[1280x800]</a> <a target="_blank" href="http://www.sectorweb.net/tutoriales/1aniversario/1280x1024_2.jpg">[1280X1024]</a> <a target="_blank" href="http://www.sectorweb.net/tutoriales/1aniversario/1024x768_2.jpg">[1024X768]<span id="more-74"></span></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorweb.net/2008/01/07/1er-aniversario-de-sectorweb/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Links importantes I</title>
		<link>http://www.sectorweb.net/2007/12/20/links-rapidos-i/</link>
		<comments>http://www.sectorweb.net/2007/12/20/links-rapidos-i/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 06:59:26 +0000</pubDate>
		<dc:creator>Rodrigo-Λzul</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.sectorweb.net/2007/12/20/links-rapidos-i/</guid>
		<description><![CDATA[Curso Completo de Action Script --------------------------- Knc
Crear un Santa Claus con Adobe Photoshop ----- V@bc
Vectorizar una imagen en Flash ------------------------- Lucas
Adobe Creative CS3 ------------------------------------------------ Azul
Mini AJAX ------------------------------------------------ Viniegra_web
Iluminar interiores con V-Ray -------------------------------- Azul
]]></description>
			<content:encoded><![CDATA[<div align="center"><img width="15" height="15" title="idea" src="http://www.foro.sectorweb.net/images/smilies/_lightbulb__revision_by_Mrichston.gif" /><strong><a style="font-size: 10pt" target="_blank" href="http://www.foro.sectorweb.net/viewtopic.php?f=32&#038;t=48">Curso Completo de Action Script</a></strong> --------------------------- <img width="15" height="15" title="idea" src="http://www.sectorweb.net/wp-content/themes/Mio/images/user.png" /><strong><a style="font-size: 10pt" target="_blank" href="http://www.foro.sectorweb.net/memberlist.php?mode=viewprofile&#038;u=55">Knc</a></strong></div>
<div align="center"><img width="15" height="15" title="idea" src="http://www.foro.sectorweb.net/images/smilies/_lightbulb__revision_by_Mrichston.gif" /><strong><a style="font-size: 10pt" target="_blank" href="http://www.foro.sectorweb.net/viewtopic.php?f=26&#038;t=76">Crear un Santa Claus con Adobe Photoshop</a></strong> ----- <img width="15" height="15" title="idea" src="http://www.sectorweb.net/wp-content/themes/Mio/images/user.png" /><strong><a style="font-size: 10pt" target="_blank" href="http://www.foro.sectorweb.net/memberlist.php?mode=viewprofile&#038;u=54">V@bc</a></strong></div>
<div align="center"><img width="15" height="15" title="idea" src="http://www.foro.sectorweb.net/images/smilies/_lightbulb__revision_by_Mrichston.gif" /><strong><a style="font-size: 10pt" target="_blank" href="http://www.wydstudios.com/blog/wordpress/2007/12/13/vectorizamos-en-flash/">Vectorizar una imagen en Flash</a></strong> ------------------------- <img width="15" height="15" title="idea" src="http://www.sectorweb.net/wp-content/themes/Mio/images/user.png" /><strong><a style="font-size: 10pt" target="_blank" href="http://www.wydstudios.com/blog/wordpress/2007/12/13/vectorizamos-en-flash/">Lucas</a></strong></div>
<div align="center"><img width="15" height="15" title="idea" src="http://www.foro.sectorweb.net/images/smilies/_lightbulb__revision_by_Mrichston.gif" /><strong><a style="font-size: 10pt" target="_blank" href="http://www.foro.sectorweb.net/viewtopic.php?f=13&#038;t=16">Adobe Creative CS3</a></strong> ------------------------------------------------ <img width="15" height="15" title="idea" src="http://www.sectorweb.net/wp-content/themes/Mio/images/user.png" /><strong><a style="font-size: 10pt" target="_blank" href="http://www.foro.sectorweb.net/memberlist.php?mode=viewprofile&#038;u=53">Azul</a></strong></div>
<div align="center"><img width="15" height="15" title="idea" src="http://www.foro.sectorweb.net/images/smilies/_lightbulb__revision_by_Mrichston.gif" /><strong><a style="font-size: 10pt" target="_blank" href="http://www.foro.sectorweb.net/viewtopic.php?f=17&#038;t=77">Mini AJAX</a></strong> ------------------------------------------------ <img width="15" height="15" title="idea" src="http://www.sectorweb.net/wp-content/themes/Mio/images/user.png" /><strong><a style="font-size: 10pt" target="_blank" href="http://www.foro.sectorweb.net/memberlist.php?mode=viewprofile&#038;u=71">Viniegra_web</a></strong></div>
<div align="center"><img width="15" height="15" title="idea" src="http://www.foro.sectorweb.net/images/smilies/_lightbulb__revision_by_Mrichston.gif" /><strong><a style="font-size: 10pt" target="_blank" href="http://www.foro.sectorweb.net/viewtopic.php?f=29&#038;t=66">Iluminar interiores con V-Ray</a></strong> -------------------------------- <img width="15" height="15" title="idea" src="http://www.sectorweb.net/wp-content/themes/Mio/images/user.png" /><strong><a style="font-size: 10pt" target="_blank" href="http://www.foro.sectorweb.net/memberlist.php?mode=viewprofile&#038;u=53">Azul</a></strong></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorweb.net/2007/12/20/links-rapidos-i/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Efecto reflejo con objetos</title>
		<link>http://www.sectorweb.net/2007/12/17/efecto-reflejo-con-objetos/</link>
		<comments>http://www.sectorweb.net/2007/12/17/efecto-reflejo-con-objetos/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 22:56:13 +0000</pubDate>
		<dc:creator>Rodrigo-Λzul</dc:creator>
		
		<category><![CDATA[Photoshop]]></category>

		<category><![CDATA[Tutoriales]]></category>

		<guid isPermaLink="false">http://www.sectorweb.net/2007/12/17/efecto-reflejo-con-objetos/</guid>
		<description><![CDATA[


Siento mucho la tardanza pero las matematicas por poco y me hacian reprobar el año jajaja pero me salve fiiiuuu!, y para comenzar con el festejo les traigo este tutorial muy util donde podran crear el efecto reflejo en objetos y no solo en planos como lo hemos visto con anterioridad, en este tutorial explique [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: center">
<div style="text-align: center"><a href="http://www.sectorweb.net/2007/12/17/efecto-reflejo-con-objetos/"><img border="0" title="efecto reflejo con objetos" alt="efecto reflejo con objetos" src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/principal.jpg" /></a></div>
</div>
<p>Siento mucho la tardanza pero las matematicas por poco y me hacian reprobar el año jajaja pero me salve fiiiuuu!, y para comenzar con el festejo les traigo este tutorial muy util donde podran crear el efecto reflejo en objetos y no solo en planos como lo hemos visto con anterioridad, en este tutorial explique paso por paso asi que se ve un poco largo pero es muy facil y rapido de hacer.<span id="more-71"></span></p>
<p class="step"><span class="steptitle">Error</span>Con regularidad he visto este error en muchos diseños, simplemente intentan hacer el efecto como si fuera una imagen plana o cuadrada y el resultado es fatal, para que no les pase esto aqui estan los pasos para hacerlo bien.</p>
<div style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/error.jpg" /></p>
<p class="step"><span class="steptitle">Recurso</span>Esta es la imagen que utilizaremos esta en formato png.</p>
<div style="text-align: center"><img width="400" src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/material.png" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/1.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/2.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/3.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/4.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/5.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/6.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/7.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/8.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/9.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/10.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/11.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/12.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/13.jpg" /></div>
<p class="step"><span class="steptitle">Paso 2</span>Crear el degradado para dar efecto reflejo.</p>
<div style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/14.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/15.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/16.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/17.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/18.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/19.jpg" /></div>
<p class="step"><span class="steptitle">Paso 3</span>Crear la sombra que ira debajo de el auto.</p>
<div style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/21.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/22.jpg" /></p>
<p class="step">
<p><img src="http://www.sectorweb.net/tutoriales/efectoreflejoobjetos/23.jpg" /></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorweb.net/2007/12/17/efecto-reflejo-con-objetos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SectorWeb te desea una Feliz Navidad!</title>
		<link>http://www.sectorweb.net/2007/12/14/sectorweb-te-desea-una-feliz-navidad/</link>
		<comments>http://www.sectorweb.net/2007/12/14/sectorweb-te-desea-una-feliz-navidad/#comments</comments>
		<pubDate>Fri, 14 Dec 2007 03:36:18 +0000</pubDate>
		<dc:creator>Rodrigo-Λzul</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.sectorweb.net/2007/12/14/sectorweb-te-desea-una-feliz-navidad/</guid>
		<description><![CDATA[
Que tal gente de SectorWeb!, han llegado las fiestas navideñas, para algunos hermosas llenas de sorpresas, comida y regalos, mientras que para otros solo son una temporada en la que hay que seguir trabajando para poder comer, tristeza y soledad para unos, felicidad y amor para otros, es el tiempo donde puedes darte cuenta de [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: center"><a href="http://www.sectorweb.net/2007/12/14/sectorweb-te-desea-una-feliz-navidad/"><img border="0" src="http://www.sectorweb.net/tutoriales/navidad2007/principal.jpg" /></a></div>
<p>Que tal gente de SectorWeb!, han llegado las fiestas navideñas, para algunos hermosas llenas de sorpresas, comida y regalos, mientras que para otros solo son una temporada en la que hay que seguir trabajando para poder comer, tristeza y soledad para unos, felicidad y amor para otros, es el tiempo donde puedes darte cuenta de el contraste que tiene este mundo, la mercadotecnia invade tu mente y solo piensas en comprar pensando que seras feliz con tu nuevo objeto jejeje. Pese a cualquier cosa pasatela muy bien, comprate el ordenador que siempre quisiste, convive con los que mas quieres, ayuda a quien lo necesita, aunque la vida te trate mal sonríele, vive el momento que no sabes que dia ya no estaras aqui, y antes de que salga la primer lágrima te digo de todo corazón ¡Feliz Navidad!.<span id="more-70"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorweb.net/2007/12/14/sectorweb-te-desea-una-feliz-navidad/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Pizarra con InputDraw</title>
		<link>http://www.sectorweb.net/2007/11/18/pizarra-con-inputdraw/</link>
		<comments>http://www.sectorweb.net/2007/11/18/pizarra-con-inputdraw/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 02:13:17 +0000</pubDate>
		<dc:creator>Rodrigo-Λzul</dc:creator>
		
		<category><![CDATA[AJAX]]></category>

		<category><![CDATA[Flash]]></category>

		<category><![CDATA[Recursos]]></category>

		<guid isPermaLink="false">http://www.sectorweb.net/2007/11/18/pizarra-con-inputdraw/</guid>
		<description><![CDATA[
Alguna ves se imaginaron tener en su sitio una pizarra donde pudieran rayar o firmar todos los que entraran? pues yo tampoco, pero un profesor fue el que me comento que estaba investigando como hacerle, pense... seguramente es con Flash y algo de AJAX, y si efectivamente navegando por la red me encontre con InputDraw [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: center"><a href="http://www.sectorweb.net/2007/11/18/pizarra-con-inputdraw/"><img border="0" src="http://www.sectorweb.net/tutoriales/inputdraw/principal.jpg" /></a></div>
<p>Alguna ves se imaginaron tener en su sitio una pizarra donde pudieran rayar o firmar todos los que entraran? pues yo tampoco, pero un profesor fue el que me comento que estaba investigando como hacerle, pense... seguramente es con Flash y algo de AJAX, y si efectivamente navegando por la red me encontre con <a href="http://www.mainada.net/inputdraw">InputDraw</a> una pizarra con la que puedes rayar dentro de un sitio web.<span id="more-69"></span></p>
<p class="step"><a href="http://www.mainada.net/inputdraw">InputDraw</a> es un potente este script, si locombinas con MySQL puedes crear un libro de visitas, creas una base de datos para almacenar los valores del ultimo dibujo introducido y mostrarlo para ser reescrito o borrado por un nuevo usuario, esto significa que puedes tener un libro de visitas pero con dibujos! suena pro no? pues ya esta la idea y la forma de como hacerlo, el poco tiempo me impide crearlo, pero si lo pudiste hacer no dudes en compartirlo!. Para mas informacion puedes visitar el <a href="http://www.mainada.net/inputdraw">sitio del autor</a>. Este es el link de la version free, no encontre la version full si la consigues comparte el link por aqui o por el foro. Que lo disfruten!!!. Para usarlo solo hay que hacer lo siguiente:</p>
<div style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/inputdraw/1.gif" /></div>
<div style="text-align: center">
<h2><img border="0" src="http://www.sectorweb.net/imagenes/zip.gif" /><a href="http://www.mainada.net/inputdraw/download_free/5">Descargar InputDraw<img border="0" src="http://www.sectorweb.net/imagenes/zip.gif" /></a></h2>
<h2><a rel="gb_page_fs[]" href="http://www.sectorweb.net/tutoriales/inputdraw/pizarra/ejemplo.html"><img border="0" src="http://www.sectorweb.net/imagenes/ej.gif" />Ejemplo<img border="0" src="http://www.sectorweb.net/imagenes/ej.gif" /></a></h2>
<h2><a href="http://www.mainada.net/inputdraw">Sitio del Autor</a></h2>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorweb.net/2007/11/18/pizarra-con-inputdraw/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Un nuevo index + SectorWeb</title>
		<link>http://www.sectorweb.net/2007/10/31/un-nuevo-index-sectorweb/</link>
		<comments>http://www.sectorweb.net/2007/10/31/un-nuevo-index-sectorweb/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 02:41:04 +0000</pubDate>
		<dc:creator>Rodrigo-Λzul</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.sectorweb.net/2007/10/31/un-nuevo-index-sectorweb/</guid>
		<description><![CDATA[
Saludos carnales, bien le he dado mas importancia al foro, la participación es muy notable en el sitio asi que me decidi a abrir este espacio donde todos podamos compartir nuestras dudas y conocimientos, crear una comunidad basada en la fraternidad y en el principal valor compartir, estos son los principios de sectorweb, el objetivo [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: center"><a href="http://www.sectorweb.net/2007/10/31/un-nuevo-index-sectorweb/"><img border="0" src="http://www.sectorweb.net/tutoriales/nuevoindex/principal.gif" /></a></div>
<p>Saludos carnales, bien le he dado mas importancia al foro, la participación es muy notable en el sitio asi que me decidi a abrir este espacio donde todos podamos compartir nuestras dudas y conocimientos, crear una comunidad basada en la fraternidad y en el principal valor compartir, estos son los principios de sectorweb, el objetivo es ser la mejor comunidad de diseñadores y desarrolladores web, crear un ambiente de confiansa donde todos podamos contar hasta los pleitos con la novia, compartir descargas directas, ayudarnos en cualquier duda, recibir un consejo de brothers o un tutorial de php jajaja <img alt=":lap:" title="lap" src="http://www.foro.sectorweb.net/images/smilies/_typerhappy__by_de_Mote.gif" /> , sin mas que decir los dejo con su foro y que lo disfruten!</p>
<div style="text-align: center">
<div style="text-align: center"><a href="http://www.foro.sectorweb.net/"><img border="0" src="http://sectorweb.net/imagenes/visitar.jpg" /></a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorweb.net/2007/10/31/un-nuevo-index-sectorweb/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Como hacer texto en 3ds Max</title>
		<link>http://www.sectorweb.net/2007/10/13/como-hacer-texto-en-3ds-max/</link>
		<comments>http://www.sectorweb.net/2007/10/13/como-hacer-texto-en-3ds-max/#comments</comments>
		<pubDate>Sun, 14 Oct 2007 01:01:36 +0000</pubDate>
		<dc:creator>Rodrigo-Λzul</dc:creator>
		
		<category><![CDATA[3D]]></category>

		<category><![CDATA[3ds Max]]></category>

		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.sectorweb.net/2007/10/13/como-hacer-texto-en-3ds-max/</guid>
		<description><![CDATA[
Saludos camaradas de SectorWeb, les he traído este videotutorial donde podran aprender las nociones básicas de 3ds Max. Aprenderemos a crear texto, texturizar, luces, camaras y un poco mas. Existen muchos generadores de gráficos en 3D como MAYA, Blender, Cinema 4D, 3ds Max entre otros, en realidad todos son muy buenos, el modelo final no [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: center"><a href="http://www.sectorweb.net/2007/10/13/como-hacer-texto-en-3ds-max/"><img border="0" src="http://www.sectorweb.net/tutoriales/textoen3d/principal.jpg" /></a></div>
<p>Saludos camaradas de SectorWeb, les he traído este videotutorial donde podran aprender las nociones básicas de 3ds Max. Aprenderemos a crear texto, texturizar, luces, camaras y un poco mas. Existen muchos generadores de gráficos en 3D como MAYA, Blender, Cinema 4D, 3ds Max entre otros, en realidad todos son muy buenos, el modelo final no depende del programa si no de el talento que tenga el que esta atras del ordenador. <span id="more-67"></span></p>
<p class="step">Esta ves dejo los links para que descarguen el videotutorial, esta en formato flv, el video esta en resolucion de 800x600 pesa alrededor de 37.58 MB, me decidi a subirlo en servidores gratutitos por que el archivo pesa mucho y esto podria ocasionar un alto consumo de ancho de banda. Les dejo el link del reproductor de archivos flv y el videotutorail, hay me cuentan como les fue jeje saludos</p>
<div style="text-align: center">
<h2><img border="0" src="http://www.sectorweb.net/imagenes/zip.gif" /><a href="http://download.flvplayer4free.com/FLVPlayer4Free_Setup.exe">Descargar [Reproductor]<img border="0" src="http://www.sectorweb.net/imagenes/zip.gif" /></a></h2>
<h2><img border="0" src="http://www.sectorweb.net/imagenes/zip.gif" /><a href="http://rapidshare.com/files/62437499/texto3d.flv">Video tutorial via [Rapidshare]<img border="0" src="http://www.sectorweb.net/imagenes/zip.gif" /></a></h2>
<h2><img border="0" src="http://www.sectorweb.net/imagenes/zip.gif" /><a href="http://www.megaupload.com/es/?d=OBSBZSG1">Video tutorial via [MegaUpload]<img border="0" src="http://www.sectorweb.net/imagenes/zip.gif" /></a></h2>
<p class="step">Con el <a class="postlink" href="http://www.foro.sectorweb.net/viewtopic.php?f=19&#038;t=62">Plugin V-Ray instalado</a>, <a class="postlink" href="http://www.foro.sectorweb.net/viewtopic.php?f=19&#038;t=64">los materiales V-Ray</a>, el <a class="postlink" href="http://www.foro.sectorweb.net/viewtopic.php?f=29&#038;t=65">video-tutorial de como crear una casa</a> y el videotutorial de <a class="postlink" href="http://www.foro.sectorweb.net/viewtopic.php?f=29&#038;t=66">como iluminar interiores</a> pude crear esto:</p>
<p><center><img width="65%" alt="Imagen" src="http://www.foro.sectorweb.net/imagenes/hellos.jpg" /></center>Espero les haya sido de gran ayuda y <span style="font-weight: bold">suban sus renders al foro de Creaciones o el de 3D para dar el visto bueno</span> , saludos gente de SectorWeb.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorweb.net/2007/10/13/como-hacer-texto-en-3ds-max/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Efecto CoverFlow iTunes en flash</title>
		<link>http://www.sectorweb.net/2007/09/29/efecto-coverflow-itunes-en-flash/</link>
		<comments>http://www.sectorweb.net/2007/09/29/efecto-coverflow-itunes-en-flash/#comments</comments>
		<pubDate>Sat, 29 Sep 2007 06:07:59 +0000</pubDate>
		<dc:creator>Rodrigo-Λzul</dc:creator>
		
		<category><![CDATA[Action Script]]></category>

		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.sectorweb.net/2007/09/29/efecto-coverflow-itunes-en-flash/</guid>
		<description><![CDATA[
Saludos gente les he traido un regalo CoverFlow iTunes el sitio de esta maravilla es n99creations, es un efecto espectacular realizado en ActionScript - Flash, el cual podras modificar fácilmente. Funciona basicamente con un archivo xml y una carpeta de imágenes, flash se encargara de parcear el xml y de buscar por medio de las [...]]]></description>
			<content:encoded><![CDATA[<div align="center"><a href="http://www.sectorweb.net/2007/09/29/efecto-coverflow-itunes-en-flash/"><img border="0" align="middle" src="http://www.sectorweb.net/tutoriales/coverflow/principal.jpg" /></a></div>
<p>Saludos gente les he traido un regalo CoverFlow iTunes el sitio de esta maravilla es<strong> <a href="http://www.n99creations.com/">n99creations</a></strong>, es un efecto espectacular realizado en ActionScript - Flash, el cual podras modificar fácilmente. Funciona basicamente con un archivo xml y una carpeta de imágenes, flash se encargara de parcear el xml y de buscar por medio de las etiquetas los parametros: nombre del archivo, direccion de las iamgenes, nombre del album entre otras, parece todo perfecto pero <strong>existen algunas modificaciones</strong> que hacer y que mostrare acontinuacion<span id="more-66"></span></p>
<h2 align="center"><img border="0" src="http://www.sectorweb.net/imagenes/zip.gif" /><a href="http://www.sectorweb.net/tutoriales/coverflow/coverflow.zip">Descargar [Recurso]<img border="0" src="http://www.sectorweb.net/imagenes/zip.gif" /></a></h2>
<div align="center"><object type="application/x-shockwave-flash" data="http://www.sectorweb.net/tutoriales/coverflow/principal.swf" width="500" height="380"><param name="movie" value="http://www.sectorweb.net/tutoriales/coverflow/principal.swf" /></object></div>
<h2 align="left"><em>Imagen donde iniciara</em></h2>
<p class="step"><span class="steptitle">Paso 1</span>Buscar la variable current y cambiar el <strong>1</strong> por el valor donde quieras que inicie en mi caso el <strong>8</strong>.</p>
<div style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/coverflow/1.gif" /></div>
<h2 align="left"><em>Correccion de direcicones absolutas</em></h2>
<p class="step"><span class="steptitle">Paso 1</span>Tuve un problema con las direcciones que maneja por default, cuando entraba a ver el post no aparecian las imágenes. Si te pasa lo mismo puedes hacer lo siguiente: coloque ../ para que se regresara a la raiz del sitio se regresa hasta 6 directorios, una ves en la raiz busca la carpeta tutoriales/coverflow y ahi busca los subdirectorios y los<strong> archivos XML</strong>.</p>
<div style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/coverflow/2.gif" /></div>
<p class="step"><span class="steptitle">Paso 2</span>Has lo mismo en la etiqueta <strong>httptype</strong> del archivo XML esto es para que encuentre las<strong> imágenes</strong>.</p>
<div style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/coverflow/3.gif" /></div>
<h2 align="left"><em>Correccion de profundidad en texto y thumbs</em></h2>
<p class="step"><span class="steptitle">Paso 1</span>Al intentar cambiar de posicion el texto y la pequeña imagen me viene a dar cuenta que estaba menos profundo que  las imagenes y por tal razon ensimaba el texto y el thumb. Para corregir esto comienza metiendo los textos en un movie clip y como nombre de instancia <strong>texto_mc</strong>.</p>
<div style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/coverflow/4.gif" /></div>
<p class="step"><span class="steptitle">Paso 2</span>Corregiremos aproximadamente en la linea 507 la dirección de variable como se muestra acontinuacion.</p>
<div style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/coverflow/5.gif" /></div>
<p class="step"><span class="steptitle">Paso 3</span>Ahora solo nos queda agregarle al movieclip <strong>texto_mc y artDisplay</strong> el metodo <strong>swapDepths </strong>cuyos niveles seran los siguientes(para agregar mas movie clips repite el paso anterior y sigue el orden ascendente) .</p>
<div style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/coverflow/6.gif" /></div>
<p class="step">Esto es todo camaradas!! y espero que les haya gustado este efectito realizado por <strong> <a href="http://www.n99creations.com/">n99creations</a></strong>, saludos!. <strong>Nota:</strong> Las imagenes deben de ser de 200 x 200 pixeles</p>
<div align="center"><object type="application/x-shockwave-flash" data="http://www.sectorweb.net/tutoriales/coverflow/principal.swf" width="500" height="380"><param name="movie" value="http://www.sectorweb.net/tutoriales/coverflow/principal.swf" /></object></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorweb.net/2007/09/29/efecto-coverflow-itunes-en-flash/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Scroll interno sin frames</title>
		<link>http://www.sectorweb.net/2007/08/19/scroll-interno-sin-frames/</link>
		<comments>http://www.sectorweb.net/2007/08/19/scroll-interno-sin-frames/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 05:44:50 +0000</pubDate>
		<dc:creator>Rodrigo-Λzul</dc:creator>
		
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.sectorweb.net/2007/08/19/scroll-interno-sin-frames/</guid>
		<description><![CDATA[
Muchas veces tenemos que hacer un scroll interno, y lo primero que nos viene a la mente es el uso de un frame o un i-frame, muchas veces hice esto pero saben hay un incoveniente el buscador no indexa el contenido del frame-iframe, para solucionar este problema encontré un script que nos ayuda a hacer [...]]]></description>
			<content:encoded><![CDATA[<div style="text-align: center"><a href="http://www.sectorweb.net/2007/08/19/scroll-interno-sin-frames/"><img border="0" src="http://www.sectorweb.net/tutoriales/scrolling/principal.jpg" /></a></div>
<p>Muchas veces tenemos que hacer un scroll interno, y lo primero que nos viene a la mente es el uso de un frame o un i-frame, muchas veces hice esto pero saben hay un incoveniente el buscador no indexa el contenido del frame-iframe, para solucionar este problema encontré un script que nos ayuda a hacer un scroll dentro de la misma pagina, acontinuacion les explico como utilizarlo.<span id="more-65"></span></p>
<div style="text-align: center">
<h2><img border="0" src="http://www.sectorweb.net/imagenes/zip.gif" /><a href="http://www.n-son.com/scripts/jsScrolling/jsScrolling.zip">Descargar [Recurso y Ejemplos]<img border="0" src="http://www.sectorweb.net/imagenes/zip.gif" /></a></h2>
</div>
<p class="step"><span class="steptitle">Paso 1</span>En la carpeta encontraras varios ejemplos, únicamente mostrare como funciona el ejemplo 1:P.<br />
Para comenzar agrega en la cabezera los estilos o si lo prefieres metelos a tu hoja de estilos<span style="font-weight: bold"><span style="font-weight: bold"><span style="font-weight: bold"><span style="font-weight: bold">.</span></span></span></span></p>
<div style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/scrolling/1.gif" /></div>
<p class="step"><span class="steptitle">Paso 2</span>Llama a tu <span style="font-weight: bold"><span style="font-weight: bold">jsScroller.js</span> y crea un nuevo scroll detonando la función jsScroller y asigandoselo a la variable scroller.</span></p>
<div style="text-align: center">
<div style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/scrolling/2.gif" /></div>
</div>
<p class="step"><span class="steptitle">Paso 3</span>Dentro de tu estilo Container agrega las siguientes propiedades a las imagenes flechas (arriba-abajo).</p>
<div style="text-align: center">
<div style="text-align: center"><img src="http://www.sectorweb.net/tutoriales/scrolling/3.gif" /></div>
</div>
<p class="step"><span class="steptitle">Paso 4</span>Dentro de los siguientes 2 estilos agrega el contenido de tu scroll.</p>
<p><strong> </strong></p>
<div style="text-align: center"><strong> </strong></p>
<div style="text-align: center"><strong><img src="http://www.sectorweb.net/tutoriales/scrolling/4.gif" /></strong></div>
<p><strong> </strong></div>
<p><strong> </strong></p>
<p class="step">Si necesitas mas informacion visita <a href="http://www.n-son.com/scripts/jsScrolling/">http://www.n-son.com/scripts/jsScrolling/</a>.</p>
<p><strong> </strong></p>
<div style="text-align: center"><strong> </strong></p>
<h2><strong><a rel="gb_page_fs[]" href="http://www.sectorweb.net/tutoriales/scrolling/example1.html">Ejemplo.<img border="0" src="http://www.sectorweb.net/imagenes/ej.gif" /></a></strong></h2>
<p><strong> </strong></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sectorweb.net/2007/08/19/scroll-interno-sin-frames/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
