When I sent an image to the code below, uploadImage.php, through a POST method, how do I add a String parameter?
<?php
$hasError = false;
foreach( $_FILES as $i=>$file )
{
if ( $file['error'] )
{
$hasError = true;
}
}
if ( ! $hasError )
{
$myFilePath = '_uploads/'.'_'.$file["name"];
$dta = file_get_contents($file['tmp_name']);
file_put_contents($myFilePath, $dta);
}
else
{
echo('Stick custom error message here');
}
?>