Foros del Web » Programando para Internet » PHP »

formulario no funca-novato

Estas en el tema de formulario no funca-novato en el foro de PHP en Foros del Web. buenas gente. lo que me sucede es que no pasa nada al tocar el boton, exactamente nada. y estoy medio ofuscado. una respuesta me aliviaria ...
  #1 (permalink)  
Antiguo 27/07/2011, 22:09
 
Fecha de Ingreso: julio-2011
Mensajes: 29
Antigüedad: 12 años, 8 meses
Puntos: 1
formulario no funca-novato

buenas gente. lo que me sucede es que no pasa nada al tocar el boton, exactamente nada. y estoy medio ofuscado. una respuesta me aliviaria mucho!. saludos!.

PRIMERA PAGINA html

<form name="form" action="regphp.php" method="post">
<table width="700" border="0" cellspacing="0" cellpadding="0" align="left">




<tr>
<td width="240" height="30">
<div align="right"><b><font color="#CC0000"><b>*</b></font> Nombre(s):</b></div>

</td>
<td width="10" height="30">&nbsp;</td>
<td width="450" height="30" colspan="3"> <b>
<input type="text" name="Nombre" size="50">
</b></td>
</tr>



<tr>
<td width="240" height="30">
<div align="right"><b><font color="#CC0000"><b>*</b></font> Apellidos:</b></div>

</td>
<td width="10" height="30">&nbsp;</td>
<td width="450" height="30" colspan="3"> <b>
<input type="text" name="Apellidos" size="50">
</b></td>
</tr>



.

.


.







<tr>
<td width="240" height="30">
<div align="right"><b><font color="#CC0000"><b>*</b></font> Pa&iacute;s:</b></div>

</td>
<td width="10" height="30">&nbsp;</td>
<td width="450" height="30" colspan="3"><b>
<input type="text" name="Pais" size="30">
</b></td>
</tr>



<tr>
<td width="240" height="30">
<div align="right"><b>Tel&eacute;fonos:</b></div>

</td>
<td width="10" height="30">&nbsp;</td>
<td width="450" height="30" colspan="3">C&oacute;digo pa&iacute;s:<b>
<input type="text" name="Telefono_Codigo_pais" size="4" maxlength="5">
</b>C&oacute;digo &aacute;rea local:<b>
<input type="text" name="Telefono_Codigo_area_local" size="4" maxlength="5">

</b>N&uacute;mero:<b>
<input type="text" name="Telefono_Numero" size="12" maxlength="15">
</b></td>
</tr>




<tr>
<td width="240" height="30">
<div align="right"><b><font color="#CC0000"><b>*</b></font> Correo
electr&oacute;nico principal:</b></div>
</td>
<td width="10" height="30">&nbsp;</td>
<td width="450" height="30" colspan="3"><b>
<input type="text" name="e_mail" size="50">

</b></td>
</tr>



<tr>
<td width="240" height="30">
<div align="right"><b>Correo electr&oacute;nico alterno:</b></div>
</td>
<td width="10" height="30">&nbsp;</td>
<td width="450" height="30" colspan="3">
<input type="text" name="Correo_Electronico_Alterno" size="50">

</td>
</tr>

<tr>
<td rowspan="3" height="30">
<div align="right"><b><font color="#CC0000"></font>&Aacute;reas
de especializaci&oacute;n:</b></div>
</td>
<td width="10" height="10">&nbsp;</td>
<td width="450" height="25" colspan="3"><b>1.
<input type="text" name="Area_Especializ_1" size="40">
</b></td>
</tr>



<tr>
<td width="10" height="10">&nbsp;</td>
<td width="450" height="25" colspan="3"><b>2.
<input type="text" name="Area_Especializ_2" size="40">
</b></td>
</tr>



<tr>
<td width="10" height="10">&nbsp;</td>
<td width="450" height="25" colspan="3"><b>3.
<input type="text" name="Area_Especializ_3" size="40">
</b></td>

</tr>



<tr>
<td width="240" height="10">&nbsp;</td>
<td width="10" height="10">&nbsp;</td>
<td width="450" height="10" colspan="3">&nbsp;</td>
</tr>



<tr>
<td width="240" height="25">&nbsp;</td>
<td width="10" height="25">&nbsp;</td>
<td width="150" height="25"><b></b></td>

<td width="150" height="25">&nbsp;</td>
<td width="150" height="25"><i>Porcentaje</i></td>
</tr>



<tr>
<td rowspan="5" height="50">
<div align="right"><b>Idiomas:</b></div>
</td>
<td width="10" height="10">&nbsp;</td>
<td height="25" bgcolor="#C6E2FF"><b>
<input type="checkbox" name="Idioma_Espanol" value="Espa&ntilde;ol">

Espa&ntilde;ol</b></td>
<td height="25" bgcolor="#C6E2FF">&nbsp;</td>
<td width="150" height="25" bgcolor="#C6E2FF"><b>
<select name="Espanol_Porcentaje" size="1">
<option>90 a 100</option>
<option>75 a 90</option>
<option>50 a 75</option>

<option>25 a 50</option>
<option>10 a 25</option>
<option selected>0</option>
</select>
%</b></td>
</tr>
<tr>
<td width="10" height="10">&nbsp;</td>

<td height="25"><b>
<input type="checkbox" name="Idioma_Ingles" value="Ingl&eacute;s">
Ingl&eacute;s</b></td>
<td height="25">&nbsp;</td>
<td width="150" height="25"><b>
<select name="Ingles_Porcentaje" size="1">
<option>90 a 100</option>
<option>75 a 90</option>

<option>50 a 75</option>
<option>25 a 50</option>
<option>10 a 25</option>
<option selected>0</option>
</select>
%</b></td>

</tr>
<tr>
<td width="10" height="10">&nbsp;</td>
<td height="25" bgcolor="#C6E2FF"><b>
<input type="checkbox" name="Idioma_Frances" value="Franc&eacute;s">
Franc&eacute;s</b></td>
<td height="25" bgcolor="#C6E2FF">&nbsp;</td>
<td width="150" height="25" bgcolor="#C6E2FF"><b>
<select name="Frances_Porcentaje" size="1">

<option>90 a 100</option>
<option>75 a 90</option>
<option>50 a 75</option>
<option>25 a 50</option>
<option>10 a 25</option>
<option selected>0</option>

</select>
%</b></td>
</tr>
<tr>
<td width="10" height="10">&nbsp;</td>
<td height="25"><b>
<input type="checkbox" name="Idioma_Portugues" value="Portugu&eacute;s">
Portugu&eacute;s</b></td>

<td height="25">&nbsp;</td>
<td width="150" height="25"><b>
<select name="Portugues_Porcentaje" size="1">
<option>90 a 100</option>
<option>75 a 90</option>
<option>50 a 75</option>
<option>25 a 50</option>

<option>10 a 25</option>
<option selected>0</option>
</select>
%</b></td>
</tr>
<tr>
<td width="10" height="10">&nbsp;</td>
<td height="25" bgcolor="#C6E2FF"><b>
<input type="checkbox" name="Idioma_Otro_Si" value="S&iacute;">

Otro especifique:</b></td>
<td height="25" bgcolor="#C6E2FF">
<input type="text" name="Idioma_Otro_Especif" size="19">
</td>
<td width="150" height="25" bgcolor="#C6E2FF"><b>
<select name="Otro_Porcentaje" size="1">
<option>90 a 100</option>
<option>75 a 90</option>

<option>50 a 75</option>
<option>25 a 50</option>
<option>10 a 25</option>
<option selected>0</option>
</select>
%</b></td>

</tr>
<tr>
<td width="240" height="10">&nbsp;</td>
<td width="10" height="10">&nbsp;</td>
<td colspan="2" height="10">&nbsp;</td>
<td width="150" height="10">&nbsp;</td>
</tr>
<tr>
<td width="240">&nbsp;</td>
<td width="10">&nbsp;</td>

<td colspan="3">
<p><b>Comentarios:</b><br>
<textarea name="Comentarios" cols="54" wrap="VIRTUAL" rows="7"></textarea>
</p>
</td>
</tr>
<tr>
<td width="240" height="50">&nbsp; </td>

<td width="10" height="50">&nbsp;</td>
<td width="150" height="50">
<div align="center">
<input type="submit" name="Submit" value="Enviar formulario">
</div>
</td>
<td width="150" height="50">
<div align="center"> </div>
</td>
<td width="150" height="50">
<div align="center">
<input type="reset" name="Submit2" value="Borrar formulario">

</div>
</td>
</tr>
</table>
</form>


2DA PAGINA php

<?php
echo "El nombre ingresado es:";
echo $_REQUEST['Nombre'];
?>

sds y gracias!
  #2 (permalink)  
Antiguo 27/07/2011, 22:58
Avatar de andresdzphp
Colaborador
 
Fecha de Ingreso: julio-2011
Ubicación: $this->Colombia;
Mensajes: 2.749
Antigüedad: 12 años, 9 meses
Puntos: 793
Respuesta: formulario no funca-novato

El formulario lo estas enviando por el método POST así que usa $_POST. No olvides colocar el archivo PHP correctamente en el action del formulario.

Código PHP:
Ver original
  1. <?php
  2. echo "El nombre ingresado es: ";
  3. echo $_POST['Nombre'];
  4. ?>

Lo probé y funciona perfectamente.
__________________
Si sabemos como leer e interpretar el manual será mucho más fácil aprender PHP. En lugar de confiar en ejemplos o copiar y pegar - PHP
  #3 (permalink)  
Antiguo 27/07/2011, 23:53
 
Fecha de Ingreso: julio-2011
Mensajes: 29
Antigüedad: 12 años, 8 meses
Puntos: 1
Respuesta: formulario no funca-novato

problema resuelto! gracias

Etiquetas: formulario
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:52.