Pass form values into another php class through javascript

idiorsassulse

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