Ver Mensaje Individual
  #13 (permalink)  
Antiguo 13/08/2010, 09:23
osek2112
 
Fecha de Ingreso: julio-2010
Mensajes: 25
Antigüedad: 14 años, 7 meses
Puntos: 0
Respuesta: Crear PHP para ejecutar varias urls

Gashe,

Te paso mi código:

<form name="form2" method="post" action="">
<table width="95" border="1" align="center">
<tr>
<th bordercolor="#333333" bgcolor="#2583DB" class="Estilo5" scope="col">Surco</th>
</tr>
<tr>
<th width="89" class="Estilo5" scope="col"><div align="center">
<p class="Estilo10">Bloquear: </p>
<span class="Estilo10">
<div onClick="ejecutar()">
<input name="radiobutton" type="radio" value="radiobutton">
</div>
</span>
<script>
function ejecutar()
{
oculto1.location.href='http://172.16.10.123/blacklist.php?PhoneNumber=1000&blacklist=0';
oculto2.location.href='http://172.16.10.123/blacklist.php?PhoneNumber=1001&blacklist=0';
oculto3.location.href='http://172.16.10.123/blacklist.php?PhoneNumber=1002&blacklist=0';
oculto4.location.href='http://172.16.10.123/blacklist.php?PhoneNumber=1003&blacklist=0';
oculto5.location.href='http://172.16.10.123/blacklist.php?PhoneNumber=1004&blacklist=0';
oculto6.location.href='http://172.16.10.123/blacklist.php?PhoneNumber=1005&blacklist=0';
oculto7.location.href='http://172.16.10.123/blacklist.php?PhoneNumber=1006&blacklist=0';
oculto8.location.href='http://172.16.10.123/blacklist.php?PhoneNumber=1010&blacklist=0';
}
</script>
<iframe width="0" height="0" frameborder="0" name="oculto1" id="oculto1"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto2" id="oculto2"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto3" id="oculto3"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto4" id="oculto4"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto5" id="oculto5"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto6" id="oculto6"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto7" id="oculto7"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto8" id="oculto8"></iframe>

<p class="Estilo10">&nbsp;</p>
<p class="Estilo10">Desbloquear: </p>
<span class="Estilo10">
<div onClick="ejecutar()">
<input name="radiobutton" type="radio" value="radiobutton">
</div>
<script language="javascript">
function ejecutar()
{
oculto1.location.href='http://172.16.10.123/blacklist2.php?PhoneNumber=1000&blacklist=3';
oculto2.location.href='http://172.16.10.123/blacklist2.php?PhoneNumber=1001&blacklist=3';
oculto3.location.href='http://172.16.10.123/blacklist2.php?PhoneNumber=1002&blacklist=3';
oculto4.location.href='http://172.16.10.123/blacklist2.php?PhoneNumber=1003&blacklist=3';
oculto5.location.href='http://172.16.10.123/blacklist2.php?PhoneNumber=1004&blacklist=3';
oculto6.location.href='http://172.16.10.123/blacklist2.php?PhoneNumber=1005&blacklist=3';
oculto7.location.href='http://172.16.10.123/blacklist2.php?PhoneNumber=1006&blacklist=3';
oculto8.location.href='http://172.16.10.123/blacklist2.php?PhoneNumber=1010&blacklist=3';
}
</script>
<iframe width="0" height="0" frameborder="0" name="oculto1" id="oculto1"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto2" id="oculto2"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto3" id="oculto3"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto4" id="oculto4"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto5" id="oculto5"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto6" id="oculto6"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto7" id="oculto7"></iframe>
<iframe width="0" height="0" frameborder="0" name="oculto8" id="oculto8"></iframe>
</span>
<p></p>
</div></th>
</tr>
</table>
<p class="Estilo10">&nbsp;</p>
</form>

Al principio me funcionaba, ahora ya no. Y ya revisé el codigo varias veces y no encuentro el problema. Quizás puedas ayudarme.

Gracias!