Formulier veld pas activeren als 1e is ingevuld
<form name="contact" action="?page=product_toevoegen" method="post" enctype="multipart/form-data">
<input type="hidden" name="submitter" value="Y" />
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="250" align="left" valign="middle">Naam van het werk: *</td>
<td align="left" valign="middle"><input type="text" name="kam_artikel_naam" class="left_zoeken_select" value=""></td>
</tr>
<tr>
<td width="250" align="left" valign="middle">Omschrijving:</td>
<td align="left" valign="middle"><input type="text" name="kam_artikel_omschrijving" class="left_zoeken_select" value=""></td>
</tr>
<tr>
<td align="left" valign="middle">Foto 1:</td>
<td align="left" valign="middle"><input type="file" name="kam_artikel_foto[]" class="left_zoeken_select" value=""></td>
</tr>
<tr>
<td align="left" valign="middle">Foto 2:</td>
<td align="left" valign="middle"><input type="file" name="kam_artikel_foto[]" class="left_zoeken_select" value=""></td>
</tr>
<tr>
<td align="left" valign="middle">Foto 3:</td>
<td align="left" valign="middle"><input type="file" name="kam_artikel_foto[]" class="left_zoeken_select" value=""></td>
</tr>
<td align="left" valign="middle" colspan="2"><br />Type a.u.b. de volgende code over: <br />
<img src="/imgcode/imgcode.php" alt="Code" title="Code" /> <input type="text" value="" name="secret_code" size="10" maxlength="5" />(hoofdlettergevoelig)</td>
</tr>
<tr>
<td align="left" valign="middle" colspan="2"><br /><input type="submit" value="Product toevoegen" ></td>
</tr>
</table>
</form>
Javascript
<tr id="tr_foto2" style="display: none;">
Input van foto 1
<input onchange="document.getElementById('tr_foto2').style.display = '';" etc >
Zoiets?
Zodat het precies in mijn ontwerp past.
bedankt.