I am creating a website and I want users to be able to register in a quadrant the hours they have available to offer a service. I have made a table and I can mark and change color. Now I need this to be recorded in a database, I guess, and to be visible to other users who visit my website.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="javascript" type="text/javascript">
function ilumina(celda){
if (celda.style.backgroundColor=="yellow")
{
celda.style.backgroundColor="green";
}
else
{
celda.style.backgroundColor="yellow";
}
}
</SCRIPT>
</head>
<body>
<table border="1" width="50%">
<tr>
<td bgcolor="green" onclick="ilumina(this)">9-10 a.m</td>
<td bgcolor="green" onclick="ilumina(this)">10-11 a.m</td>
<td bgcolor="green" onclick="ilumina(this)">11-12 a.m</td>
<td bgcolor="green" onclick="ilumina(this)">12-13 a.m</td>
</tr>
</table>
</body>
</html>