tasairis wrote:How is it hard? It's a second or two of typing.
it's not bout typing issue, it's about understanding why the code didnot run..
ok if i want write it like this, for example, i want to insert start date and other infos. i put that in the form. Later i wanna add function to upload file. since it has it's own form tag, i juz add the upload form into the first form. But when i run, it seems that only upload button was functioning, another :
Code: Select all
<form name="form" id="form" method="post">
<table>
<tr>
<td><?php echo "Start Date"; ?></td>
<td>:</td>
<td><input type="text" name="startdate" id="startdate" maxlength="25" size="25" readonly="" value="<?=$startdate;?>"/>
<a href='javascript:NewCal("startdate","ddmmyyyy",false,24)'><img src="cal.gif" width="16" height="16" border="0" alt="Pick a date"/> <span class="style1">*</span></a></td>
</tr>
</table>
<form method="post" name="form" id="form" enctype="multipart/form-data">
<table>
<tr><td><input type="hidden" name="MAX_FILE_SIZE" value=""> </td> </tr>
<tr><td> Please choose a file</td><td>:</td></tr>
<tr>
<input type="file" size="50" name="faillampiran" alt="faillampiran" id="faillampiran" 1value= "<?=$faillampiran;?>" />
<tr align = "center"><td colspan = "3"><input type="submit" value="Upload" name="btnupload"/></td></tr>
</tr>
</table>
</form>
<input type='submit' value='<?php echo get_string('btnsave','course'); ?>' name="btnsave" 1onclick="alert()" >
</form>
it seems that, only one button is fuctioning. Why is that?
thx