1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| echo("<script language=\"JavaScript\">");
echo("function controle_saisie()");
echo("{");
echo("if(document.getElementById('valdeb').value == ''){");
echo("alert ('Vous avez oublié de saisir un champ!!!!');");
echo("return false;");
echo("}");
echo("else ");
echo("{");
echo("val=document.getElementById('valdeb').value;");
echo("document.write(val);");
echo("url='fenetresorgani/affichage_organi.php?valeur=$val';");
echo("window.open(url,'','width=800,height=600');");
echo("}");
echo("}");
echo("</script>");
echo("<ul>");
echo("<br>");
echo("<form method='get' onsubmit='controle_saisie()'>");
echo("<div><b>Valeur début :</b> ");
echo("<input type='text' name='valdeb' size='20' maxlength='255' value=''>");
echo("<input type='submit' name='ok' value='OK'><br>");
echo("</div></form>"); |