PHP - Can upload without <form> tag?

Prophonouperb

New Member
If upload file with php , with simple way , i can do like this page\[code\]<?php if($_FILES){ DO UPLOAD }?><form action='' enctype='multipart/form-data' method='post'> <input type="file" name="file"> <input type="submit" name="upload" value="http://stackoverflow.com/questions/3690224/submit"></form>\[/code\]And now, i have to upload file but with out \[code\]<form>\[/code\] tag like this \[code\]------index.html---- <input type="file" name="file"> <a href="http://stackoverflow.com/questions/3690224/upload.php">Upload</a>--------------------------upload.php----- CODE PHP TO UPLOAD FILE---------------------\[/code\]when click upload link , it can be a page that do upload.But i don't know how to the upload page can get file without tag formSimple index.html only to send file name , and where it local to upload page proccesssorry for my bad english
 
Back
Top