RE: [Help Me] How To Upload A File Or PHP 04-20-2014, 02:35 AM
#6
(04-20-2014, 02:25 AM)vampireclanz Wrote: Try With The <form action="xxx.mysite.com/aaaa/dir/uploads.php" method="post" Still Won't work . Or i Should Put <form action="xxx.mysite.com/aaaa/dir/" method="post" ? Sorry Bad English .
See what I was saying was that you need to know the correct argument(s) you have to send to the script in order for it to work.
So if the script had:
PHP Code:
$userfile_name = $_FILES['image']['name'];
Code:
<input type="file" name="image">(04-20-2014, 02:25 AM)Duubz Wrote: As for the form action, it should remain empty.If the request was coming from the script itself, then yes. But since OP is trying to remotely upload a file via an uploader already in place on a site he does not have write access to, he will need to specify the "action" as the address to the script (E.X. http://heteroequality.com/sekret/upload.php).
<form action=""




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)