so i have a news form that acts upon itself by testing for the submit variable. works just fine. now i want to upload files with the form, so i added enctype="multipart/form-data" to the form.
now, the $submit variable comes back as empty?
any suggestions here?
code:
//here's where i declared the submit variable which now comes back empty
$submit = $_POST["submit"];
if (!$submit) {
//write the add news form
echo "<form name=\"form\" action = \"\" method = \"post\" enctype=\"multipart/form-data\">";
//snip form code
echo "<input type=\"submit\" name=\"submit\" value=\"submit\">"
}else{
//process the add news
}