I have this form:
<form action="after.php" method="post" id="divulgacao">
<div style="float: left;width: 195px; margin-right: 10px;">
<p class="pdados">Your name</p>
<input class="campodivulgue" name="titulo" type="text" />
</div>
<div style="float: left;width: 195px; margin-right: 10px;">
<p class="pdados">E-mail</p>
<input class="campodivulgue" name="email" type="text" />
</div>
<div style="float: left; width: 195px; ">
<p class="pdados">Your picture</p>
<input style="float:left; height: 22px;" type="file" name="file" id="file" />
</div>
<p align="right" style="margin-top: 10px;"><input class="btn" type="submit" name="button" id="button" value="Send" /></p>
</form>
What should I do so when the user clicks on the send button, the chosen file in the file field is uploaded using FTP? What should be the content of the file after.php
Do I have to put another form for file upload?