Intanto ringrazio per l'interessamento.
Purtroppo non saprei come integrare lo script postato con il codice che ho che è questo
Codice PHP
Codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Configurazioni di sistema</title>
</head>
<body>
<table width="614" height="295" border="1">
<tr>
<th width="118" scope="col"> </th>
<th colspan="2" scope="col">LINEA 1</th>
</tr>
<tr>
<th height="25" scope="row"> </th>
<td><div align="center">Ore</div></td>
<td><div align="center">Min.</div></td>
</tr>
<tr>
<th height="43" scope="row">Ora partenza</th>
<td width="75"><div align="center">
<select name="OraPartenza" id="OraPartenza">
<?php
echo "<option selected=\"selected\">";
echo "</option>";
$i = 0;
while ($i <= 23) {
echo "<option>";
echo $i;
echo "</option>";
$i++;
}
?>
</select>
</div></td>
<td width="75"><div align="center">
<select name="MinPartenza" id="MinPartenza">
<?php
echo "<option selected=\"selected\">";
echo "</option>";
$i = 0;
while ($i <= 59) {
echo "<option>";
echo $i;
echo "</option>";
$i++;
}
?>
</select>
</div></td>
</tr>
<tr>
<th height="48" scope="row">Durata</th>
<td><div align="center">
<select name="OreDurata" id="OreDurata">
<?php
echo "<option selected=\"selected\">";
echo "</option>";
$i = 0;
while ($i <= 23) {
echo "<option>";
echo $i;
echo "</option>";
$i++;
}
?>
</select>
</div></td>
<td><div align="center">
<select name="MinDurata" id="MinDurata">
<?php
echo "<option selected=\"selected\">";
echo "</option>";
$i = 0;
while ($i <= 59) {
echo "<option>";
echo $i;
echo "</option>";
$i++;
}
?>
</select>
</div></td>
</tr>
<tr>
<th height="48" scope="row"> </th>
<td><form id="form2" name="form2" method="post" action="">
<label>
<div align="center">
<input type="text" name="OraArrivo" id="OraArrivo" />
</div>
</label>
</form></td>
<td><form id="form1" name="form1" method="post" action="">
<label>
<div align="center">
<input type="text" name="MinArrivo" id="MinArrivo" />
</div>
</label>
</form></td>
</tr>
<tr>
</tr>
</table>
</body>
</html>
In pratica ho i campi dove faccio inserire all'utente l'orario di partenza e la durata.
Quello che mi servirebbe è che dopo l'inserimento di questi dati i campi "OraArrivo" e "MinArrivo" venissero compilati in automatico, senza dover aggiornare la pagina.
Se fosse impossibile mi potrei "accontentare" anche di un alert come mi hai suggerito nello script che comunque non riesco ad integrare.
Saresti così gentile da aiutarmi ulteriormente? Grazie ancora in anticipo.