I have a MyAccount page for my website which is going to have a form to allow the users to upload an image.
<from action='javascript:uploadFile'>
<input type='file' name='Upload'>
</form>
What I would like to do is have it call another .php file like:
<script type="text/javascript">
function uploadFile()
{
addPhoto.php giving files $id and Upload (from the form)
}
How can I achieve this without the user actually leaving the MyAccount page?