hi, I have a form for the user to fill out which looks like this:
<form method='post' action='addphotosuccess.php' enctype='multipart/form-data'>
Photo to upload:<br>
<input type='file' name='filename' size='40'>
<p><input type='submit' name='submit' value='submit'>
</form>
this is supposed to add a photo from their computer to their directory on a remote server. I do this:
<input type='hidden' name='Loginusername' value='<?php echo($Loginusername);?>'>
<input type='hidden' name='filename' value='<?php echo($filename);?>'>
<?
if (!copy($filename, http://www.onecardexpress.net/temp17/$Loginusername/$filename)) {
echo("failed to copy $file...<br>\n");
}
?>
is this the way to do it or is there other ways for this.
Thanks,
Steve