开发者

file upload forms inside main form

i need to have a form when you press the main submit button all the stuff in it is submitted: textareas, input and fileupload but i dont understand how can this be done because fileuploads require their own submit button

right now i have this

<form method="post">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Title Eng: <input type="text" name="title_Eng" class="submit01" value="<?php echo $_POST["title_Eng"]; ?>"/></td>
<td>Title It: <input type="text" name="title_It" class="submit01" value="<?php echo $_POST["title_It"]; ?>"/></td>
<td>Title Fr: <input type="text" name="title_Fr" class="submit01" value="<?php echo $_POST["title_Fr"]; ?>"/></td>
</tr>
</table>

<table border="0" cellpadding="0" cellspacing="0" style="margin-top: 5px;">
<tr><td valign="top">De开发者_Go百科sc Eng:</td><td><textarea class="textArea01" name="desc_Eng"><?php echo $_POST["desc_Eng"]; ?></textarea></td></tr>
<tr><td valign="top">Desc It:</td><td><textarea class="textArea01" name="desc_It"><?php echo $_POST["desc_It"]; ?></textarea></td></tr>
<tr><td valign="top">Desc Fr:</td><td><textarea class="textArea01" name="desc_Fr"><?php echo $_POST["desc_Fr"]; ?></textarea></td></tr>
<tr><td colspan="2"><input type="submit" value="submit event in Marrakech" class="submit" name="submit_event_in_marrakech"/></td></tr>
</table>
</form>

and i need inside of this form multiple file uploads that get sent once the main submit button is pressed because all this data is inserted in a same row in the db, any thoughts on how can this be achieve? thanks


This website should guide you: file upload.
Just as a note, there is no need for a separate submit button for a file or files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜