<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
>
	<channel>
		<title>Dudas de Programacion &#187; Tag: PHP - Recent Posts</title>
		<link>http://www.dudasprogramacion.com/tags/php</link>
		<description>Dudas sobre lenguajes y apis de programación</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Feb 2012 07:22:05 +0000</pubDate>
		<generator>bbpress 1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.dudasprogramacion.com/search.php</link>
		</textInput>
		<atom:link href="http://www.dudasprogramacion.com/rss/tags/php" rel="self" type="application/rss+xml" />

		<item>
			<title>diamardan on "¿como puedo Regresar 2 json con jquery?"</title>
			<link>http://www.dudasprogramacion.com/topic/%c2%bfcomo-puedo-regresar-2-json-con-jquery#post-957</link>
			<pubDate>Wed, 24 Aug 2011 05:11:05 +0000</pubDate>
			<dc:creator>diamardan</dc:creator>
			<guid isPermaLink="false">957@http://www.dudasprogramacion.com/</guid>
			<description><p>amigos soy nuevo en tanto en el foro como en la programación y tengo una simple pregunta<br />
estoy usando la lireria jquery para un proyecto escolar pido a mysql datos y filtro en php pero no se como regresar 2 json, miren les dejo el código aqui abajo</p>
<pre class="php" style="font-family:monospace;">Código Fuente
<span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;?php
</span><span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'../conexion.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$ID</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'dato'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Esta variable la mande desde el jquery hasta aqui todo va bien</span>
&nbsp;
<span style="color: #000088;">$rA</span>ños <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;select Fecha from facturas where empresas_ID_Empresa = <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$ID</span><span style="color: #000099; font-weight: bold;">\&quot;</span> ORDER BY Fecha ASC&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$conexion</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/* Este código es para buscar solo las fechas y filtrar ya que quiero solo años sin mes ni dia*/</span>
<span style="color: #000088;">$a</span>ños2<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">/*Inicializo una variable para despues evaluar otra */</span>
&nbsp;
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rowA</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_fetch_array"><span style="color: #990000;">mysql_fetch_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rA</span>ños<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$a</span>ños <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;-&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$rowA</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Fecha'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$a</span>ño <span style="color: #339933;">=</span> <span style="color: #000088;">$a</span>ños<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span>ño <span style="color: #339933;">!=</span> <span style="color: #000088;">$a</span>ños2<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">/* el año es diferente a 0 en la primera vez */</span>
		<span style="color: #000088;">$year</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;year&quot;</span> <span style="color: #339933;">=&amp;</span><span style="color: #666666; font-style: italic;">#62; $año);
</span>		<span style="color: #000088;">$a</span>ños2 <span style="color: #339933;">=</span> <span style="color: #000088;">$a</span>ño<span style="color: #339933;">;</span>
		<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;select Nombre,Fecha,Subtotal,IVA,Total from facturas,empresas where Fecha like '<span style="color: #006699; font-weight: bold;">$a</span>ño%' ORDER BY Fecha ASC&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$conexion</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_fetch_array"><span style="color: #990000;">mysql_fetch_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$_arreglo</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$a</span>ño<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;año&quot;</span><span style="color: #339933;">=&amp;</span><span style="color: #666666; font-style: italic;">#62;$row['Fecha'],&quot;nom&quot;=&amp;#62;$row[&quot;Nombre&quot;],&quot;subT&quot;=&amp;#62;$row['Subtotal'],&quot;iva&quot;=&amp;#62;$row[&quot;IVA&quot;],&quot;Total&quot;=&amp;#62;$row['Total']);
</span>		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">/*todo lo demás se lo han de imaginar y si funciona si en vez de los dos echo de abajo solo dejo uno, pero necesito las 2 variables en la función de javascript, alguna forma de como resolver esto?? o tendria que hacer otra llamada con jquery para en otro archivo generar el $_arreglo?? */</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <a href="http://www.php.net/json_encode"><span style="color: #990000;">json_encode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$year</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <a href="http://www.php.net/json_encode"><span style="color: #990000;">json_encode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_arreglo</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* en el log de la consola de chrome me dice 'status Text':&quot;parserError&quot;*/</span>
&nbsp;
?<span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#62;</span>
&nbsp;</pre></description>
		</item>
		<item>
			<title>yoniti7784 on "me urge ayuda con un envio de datos a una pagina"</title>
			<link>http://www.dudasprogramacion.com/topic/me-urge-ayuda-con-un-envio-de-datos-a-una-pagina#post-926</link>
			<pubDate>Sun, 08 May 2011 22:56:05 +0000</pubDate>
			<dc:creator>yoniti7784</dc:creator>
			<guid isPermaLink="false">926@http://www.dudasprogramacion.com/</guid>
			<description><p>Buenas necesito ayuda con un Radio de html + php y jquery....<br />
tengo lo siguiente:::<br />
en php</p>
<pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$reg</span><span style="color: #339933;">=</span><a href="http://www.php.net/mysql_fetch_array"><span style="color: #990000;">mysql_fetch_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$respuesta</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&amp;#60;input type='hidden' name='nombre' value='.<span style="color: #006699; font-weight: bold;">$reg</span>['idusuario'].'&amp;#62;&quot;</span><span style="color: #339933;">;</span>
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&amp;#60;input type='radio'&amp;#62; nombre : &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$reg</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'nom_usuario'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre>
<p>como son varios registros solo cuando lo envio en el submit aquí tengo un script</p>
<pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> FormularioUsuarios<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    $.<span style="color: #660066;">post</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Conexiones/calendario.php'</span><span style="color: #339933;">,</span>
           <span style="color: #009900;">&#123;</span>info<span style="color: #339933;">:</span> form_seleccion.<span style="color: #660066;">nombre</span>.<span style="color: #660066;">value</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
           <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>output<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.calendario'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>output<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
           <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre>
<p>al momento de capturarlo en 'pagina1.php' lo ago asi:</p>
<pre class="php" style="font-family:monospace;"><span style="color: #000088;">$captura</span><span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_real_escape_string"><span style="color: #990000;">mysql_real_escape_string</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'info'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre>
<p>y me marca error de que no se pudo mostrar.<br />
el problema ya se cual es, lo que no se es la solución.<br />
Lo he conseguido enviar quitando el 'input&#62;hidden' del 'WHILE' y poniendolo fuera.<br />
al parecer no puedo enviar más de un 'name' por este script.</p>
<p>espero me haya explicado bien, sin mas que decir gracias.
</p></description>
		</item>
		<item>
			<title>yens on "Como usar json jquery"</title>
			<link>http://www.dudasprogramacion.com/topic/como-usar-json-jquery#post-883</link>
			<pubDate>Thu, 24 Feb 2011 19:09:16 +0000</pubDate>
			<dc:creator>yens</dc:creator>
			<guid isPermaLink="false">883@http://www.dudasprogramacion.com/</guid>
			<description><p>Tengo problemas con el uso de jquery y PHP</p>
<p>no se si me pueden ayudar con un simple ejemplo o un link que me especifique los requerimientos del php o alguno</p>
<p>gracias
</p></description>
		</item>
		<item>
			<title>fiurer87 on "Formulario de contacto"</title>
			<link>http://www.dudasprogramacion.com/topic/formulario-de-contacto#post-845</link>
			<pubDate>Sun, 26 Dec 2010 21:35:43 +0000</pubDate>
			<dc:creator>fiurer87</dc:creator>
			<guid isPermaLink="false">845@http://www.dudasprogramacion.com/</guid>
			<description><p>Mira este link<br />
<a href="http://www.programadorez.com/foros/viewtopic.php?f=16&#038;t=35" rel="nofollow">http://www.programadorez.com/foros/viewtopic.php?f=16&#038;t=35</a>
</p></description>
		</item>
		<item>
			<title>k1r02 on "Formulario de contacto"</title>
			<link>http://www.dudasprogramacion.com/topic/formulario-de-contacto#post-838</link>
			<pubDate>Wed, 15 Dec 2010 16:18:25 +0000</pubDate>
			<dc:creator>k1r02</dc:creator>
			<guid isPermaLink="false">838@http://www.dudasprogramacion.com/</guid>
			<description><p>al momento de finalizar todo lo que haces al enviar la información al PHP puedes utilizar 2 formas para redireccionar a otra pagina web de tu sitio o externo.</p>
<p>1.- PHP<br />
	   ob_start();<br />
	   header("Location: index.php");<br />
	   ob_end_flush();</p>
<p>2.- Javascrip</p>
<p>&#60;script language="javascript" type="text/javascript"&#62;<br />
location.href="www.misitio.com/inicio.html";<br />
    &#60;/script&#62;
</p></description>
		</item>
		<item>
			<title>lineadecodigo on "Formulario de contacto"</title>
			<link>http://www.dudasprogramacion.com/topic/formulario-de-contacto#post-835</link>
			<pubDate>Wed, 15 Dec 2010 00:50:53 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">835@http://www.dudasprogramacion.com/</guid>
			<description><p>@estril7,</p>
<p>Comparte tu código para que podamos ayudarte.
</p></description>
		</item>
		<item>
			<title>lineadecodigo on "Ayuda con un  en php!!!"</title>
			<link>http://www.dudasprogramacion.com/topic/ayuda-con-un-en-php#post-833</link>
			<pubDate>Tue, 14 Dec 2010 23:25:10 +0000</pubDate>
			<dc:creator>lineadecodigo</dc:creator>
			<guid isPermaLink="false">833@http://www.dudasprogramacion.com/</guid>
			<description><p>¿Pero una vez cargada la página? Es decir, cuando selecciones una opción, que el valor aparezca en el campo de texto dinámicamente ¿?</p>
<p>Te adjunto un documento de como se manejan dinámicamente por si te sirve de aproximación.<br />
<a href="http://lineadecodigo.com/javascript/activar-valores-de-un-combo-dinamicamente/" rel="nofollow">http://lineadecodigo.com/javascript/activar-valores-de-un-combo-dinamicamente/</a></p>
<p>Pero la idea sería sobre el onChange del select cargar el campo de texto</p>
<pre class="html4strict" style="font-family:monospace;"><span style="color: #ddbb00;">&amp;#60;</span>select onchange=&quot;document.getElementById('referencia').value=this.select.value&quot;<span style="color: #ddbb00;">&amp;#62;</span>...<span style="color: #ddbb00;">&amp;#60;</span>/select<span style="color: #ddbb00;">&amp;#62;</span></pre></description>
		</item>
		<item>
			<title>estril7 on "Formulario de contacto"</title>
			<link>http://www.dudasprogramacion.com/topic/formulario-de-contacto#post-818</link>
			<pubDate>Sun, 05 Dec 2010 00:08:48 +0000</pubDate>
			<dc:creator>estril7</dc:creator>
			<guid isPermaLink="false">818@http://www.dudasprogramacion.com/</guid>
			<description><p>tengo un fomrulariod e contacto php, que utilizo apra una pagina en html, </p>
<p>el formulario funciona perfecto, el problema uqe tengo es que cuando envia la informacion se traslada a una pagina en blanco y no puedo volver a la pagina donde esta el formulario</p>
<p>Alguien me oddria ayudar con esta situacion???
</p></description>
		</item>
		<item>
			<title>lozadav on "Ayuda con un  en php!!!"</title>
			<link>http://www.dudasprogramacion.com/topic/ayuda-con-un-en-php#post-794</link>
			<pubDate>Wed, 24 Nov 2010 16:51:00 +0000</pubDate>
			<dc:creator>lozadav</dc:creator>
			<guid isPermaLink="false">794@http://www.dudasprogramacion.com/</guid>
			<description><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;?php
</span>	<span style="color: #000088;">$consult</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;select nom_trabajo, valor_trabajo from trabajo;&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$result</span><span style="color: #339933;">=</span><a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$consult</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	?<span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#62;
</span>    <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;select name=&quot;trabajo&quot; id=&quot;trabajo&quot;&amp;#62;
</span>    <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;?php
</span>        <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$fila</span><span style="color: #339933;">=</span><a href="http://www.php.net/mysql_fetch_array"><span style="color: #990000;">mysql_fetch_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>		  <a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;optionvalue=s&amp;#62;<span style="color: #009933; font-weight: bold;">%s</span>&amp;#60;/option&amp;#62;&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$fila</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;nom_trabajo&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$fila</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;nom_trabajo&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	?<span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#62;
</span>    <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;/select&amp;#62;
</span>
<span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#60;input type=&quot;text&quot; name=&quot;referencia&quot; id=&quot;referencia&quot; size=&quot;20&quot; value=&quot;&amp;#60;?php echo $fila&quot;&amp;#62;</span></pre>
<p>la consulta esta buena, la informacion que tengo en la base de datos me sale lo que necesito es que cuando me escoja una de las opciones que tengo en uno de los items osea la informacion que se carga en los &#60;option&#62; me salga en el campo de texto el valor.</p>
<p>mi correo es <a href="mailto:krlitox_lozada@hotmail.com">krlitox_lozada@hotmail.com</a> por si depronto tienen alguna duda. gracias y espero ayuda de los que son + espertos Gracias ;)
</p></description>
		</item>
		<item>
			<title>fiurer87 on "Abrir un Archivo, sin Guardar como"</title>
			<link>http://www.dudasprogramacion.com/topic/abrir-un-archivo-sin-guardar-como#post-530</link>
			<pubDate>Tue, 22 Jun 2010 19:33:28 +0000</pubDate>
			<dc:creator>fiurer87</dc:creator>
			<guid isPermaLink="false">530@http://www.dudasprogramacion.com/</guid>
			<description><p>intenta con include de php.</p>
<p>&#60;?php include("algunArchivo.algo"); ?&#62; </p>
<p>//esto imprimira en pantalla el contenido de tu archivo de texto sea cual sea su extension, no lo probe bien con binarios.
</p></description>
		</item>
		<item>
			<title>juan_perez on "Abrir un Archivo, sin Guardar como"</title>
			<link>http://www.dudasprogramacion.com/topic/abrir-un-archivo-sin-guardar-como#post-528</link>
			<pubDate>Tue, 22 Jun 2010 10:01:25 +0000</pubDate>
			<dc:creator>juan_perez</dc:creator>
			<guid isPermaLink="false">528@http://www.dudasprogramacion.com/</guid>
			<description><p>Abrir un Archivo, sin Guardar como</p>
<p>Nesesito si me pueden ayudar, que al abrir un archivo y no me pregunte por ABRIR o GUARDAR COMO. que al realizar un click, abra el programa predeterminado al cual pertece el archivo, sin Plug-ins. por ejemplo abrir un archivo Tiff<br />
He probado lo Siguiente y no me ha funcionado </p>
<pre class="javascript" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">function</span> ejecutar<span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">window.<span style="color: #660066;">setTimeout</span><span style="color: #009900;">&#40;</span>location.<span style="color: #660066;">href</span><span style="color: #339933;">=</span>\HOJA0001.<span style="color: #660066;">TIF</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #003366; font-weight: bold;">function</span> ejecutar2<span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">window.<span style="color: #660066;">location</span>.<span style="color: #660066;">href</span><span style="color: #339933;">=</span>\HOJA0001.<span style="color: #660066;">TIF</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>input id<span style="color: #339933;">=</span>Button1 type<span style="color: #339933;">=</span>button value<span style="color: #339933;">=</span>ejecutar onclick <span style="color: #339933;">=</span> ejecutar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339933;">&amp;</span>#<span style="color: #CC0000;">60</span><span style="color: #339933;">;</span>input id<span style="color: #339933;">=</span>Button2 type<span style="color: #339933;">=</span>button value<span style="color: #339933;">=</span>ejecutar onclick <span style="color: #339933;">=</span> ejecutar2<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;&amp;</span>#<span style="color: #CC0000;">62</span><span style="color: #339933;">;</span></div></li></ol></pre>
<p>Gracias
</p></description>
		</item>
		<item>
			<title>fiurer87 on "Imágenes en botones"</title>
			<link>http://www.dudasprogramacion.com/topic/imagenes-en-botones#post-414</link>
			<pubDate>Wed, 19 May 2010 14:28:17 +0000</pubDate>
			<dc:creator>fiurer87</dc:creator>
			<guid isPermaLink="false">414@http://www.dudasprogramacion.com/</guid>
			<description><p>Hola,<br />
Botones con imagenes en JAVA.<br />
Bueno, en JAVA el JButton tiene un constructor de la siguiente forma<br />
JButton(String s, Icon i);<br />
Donde Icon es una interface, es decir puedes crear una clase que implemente esa interfaz y podra ser usado como icono de JButton, pero existe tambien el Clase ImageIcon que obtinene una imagen desde un lugar especifico y la usa como icono, su constructor tiene la siguiente forma (por lo menos para nuestro caso :&#124; ).<br />
ImageIcon(String URLimagen).<br />
Bueno, ya no te aburro mas con explicaciones te dejo un ejemplito :).<br />
Supondre que tengo una carpeta ico, donde estan mis iconos, por ejemplo<br />
iconito.png<br />
==================================<br />
/* BotonIcono.java<br />
 * @author Roberto Perez */</p>
<p>import java.awt.FlowLayout;<br />
import javax.swing.JFrame;<br />
import javax.swing.JButton;<br />
import javax.swing.ImageIcon;</p>
<p>public class BotonIcono extends JFrame{<br />
     private JButton boton;<br />
     private ImageIcon imagen;<br />
     public BotonIcono(){<br />
        super(&#34;Boton Imagen&#34;);<br />
        setSize(200,80);<br />
        setLayout(new FlowLayout());<br />
        imagen = new ImageIcon(&#34;icon/iconito.png&#34;);<br />
        boton = new JButton(&#34;Mi Boton&#34;, imagen);<br />
        add(boton);<br />
     }</p>
<p>     public static void main(String[] arg){<br />
        BotonIcono obj = new BotonIcono();<br />
        obj.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<br />
        obj.setVisible(true);<br />
     }<br />
}
</p></description>
		</item>
		<item>
			<title>fiurer87 on "ENVIAR UN FORMULARIO VARIAS VECES CON UN CLICK"</title>
			<link>http://www.dudasprogramacion.com/topic/enviar-un-formulario-varias-veces-con-un-click#post-406</link>
			<pubDate>Tue, 18 May 2010 16:19:03 +0000</pubDate>
			<dc:creator>fiurer87</dc:creator>
			<guid isPermaLink="false">406@http://www.dudasprogramacion.com/</guid>
			<description><p>Segun te entiendo, quieres hacer N veces alguna accion con ciertos datos, y se trata de trabajar N veces con los datos y no asi enviar N veces los datos.</p>
<p>Debes reutilizar la informacion enviada, ya que el envio tarda mas que el procesamiento.</p>
<p>Ahora espero sea de mas ayuda
</p></description>
		</item>
		<item>
			<title>fiurer87 on "ENVIAR UN FORMULARIO VARIAS VECES CON UN CLICK"</title>
			<link>http://www.dudasprogramacion.com/topic/enviar-un-formulario-varias-veces-con-un-click#post-405</link>
			<pubDate>Tue, 18 May 2010 16:17:35 +0000</pubDate>
			<dc:creator>fiurer87</dc:creator>
			<guid isPermaLink="false">405@http://www.dudasprogramacion.com/</guid>
			<description><p>Ahora te dejare un ejemplo que al poner un determinado numero de veces, se hace algo con esa informacion N veces.</p>
<p>==========================================<br />
&#60;html&#62;<br />
&#60;body&#62;<br />
&#60;?php<br />
//Aqui hago lo que quiero con la informacion<br />
//enviar a BD o lo que sea, en este caso solo lo imprimire<br />
//siempre hara $numero veces la accion que desees<br />
$numero = $_POST['numero'];<br />
$nombre = $_POST['nombre'];<br />
$apellido = $_POST['apellido'];<br />
if(isset($numero)){<br />
	for($i=1;$i&#60;=$numero;$i++)<br />
		echo &#34;&#60;h2&#62;Datos [$i]: $nombre $apellido&#60;/h2&#62;&#34;;<br />
}<br />
?&#62;<br />
	&#60;form method=&#34;post&#34; target=&#34;_self&#34;&#62;<br />
	Nombre: &#60;input type=&#34;text&#34; name=&#34;nombre&#34; /&#62;<br />
	Apellido:&#60;input type=&#34;text&#34; name=&#34;apellido&#34; /&#62;<br />
	No Veces:&#60;input type=&#34;text&#34; name=&#34;numero&#34; /&#62;<br />
	&#60;input type=&#34;submit&#34; value=&#34;Enviar&#34; /&#62;<br />
	&#60;/form&#62;<br />
&#60;body&#62;<br />
&#60;/html&#62;<br />
==========================================
</p></description>
		</item>
		<item>
			<title>fiurer87 on "ENVIAR UN FORMULARIO VARIAS VECES CON UN CLICK"</title>
			<link>http://www.dudasprogramacion.com/topic/enviar-un-formulario-varias-veces-con-un-click#post-404</link>
			<pubDate>Tue, 18 May 2010 16:03:21 +0000</pubDate>
			<dc:creator>fiurer87</dc:creator>
			<guid isPermaLink="false">404@http://www.dudasprogramacion.com/</guid>
			<description><p>Espero eso sea justamente lo que buscas ... saludos
</p></description>
		</item>

	</channel>
</rss>

