![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
25/02/2013, 10:53
|
![Avatar de haggenx](http://static.forosdelweb.com/customavatars/avatar167314_4.gif) | | | Fecha de Ingreso: febrero-2007 Ubicación: México
Mensajes: 823
Antigüedad: 18 años Puntos: 24 | |
Respuesta: enviar valor de campo de texto por url... ¿Como lo hago? Que extraño que no funcione, podrías un poco mas laborioso pero por lo menos a mi me funciona hacer algo como esto:
<html>
<head>
<title>Mi página</title>
<head>
<script language="javascript">
<!--
function enviar()
{
if(isNaN(document.form.nota.value))
alert("debe introducir una nota numerica...");
else
document.form.submit();
}
-->
</script>
</head>
<body>
<form name="form" method="get" action="../controlador/procesar_nota.php">
<input type="text" name="nota">
<input type="button" value="Guardar" onclick="javascript:enviar();">
</form> |