I've the form you see below, which is supposed to upload an image. I
expect the image name as a var to be $uploadedFile. In the receiving
function, I've this code:
global $uploadedFile, $uploadedFile_s ize, $uploadedFile_n ame;
echo "here is the file name: $uploadedFile, $uploadedFile_s ize,
$uploadedFile_n ame; <hr> ";
$uploadedFile_n ame =
$formatTextObje ct->processFileNam e($uploadedFile _name);
$uploadedFile_n ame = htmlspecialchar s($uploadedFile _name);
The line where I echo things out is just for debugging. I get the
first 5 words, but no vars, nothing, no globals of that name are in
global space. Below is the form. What am I missing?
[color=blue][color=green][color=darkred]
>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >[/color][/color][/color]
<form method="post" action="/mcControlPanel. php"
enctype="multip art/form-data" class="mcForm">
<input id="inputId1" type="hidden"
name="formInput s[formSecurityRat ing]" value="associat e"
class="hiddenIn put">
<div class="formElem ent">
Upload an image:
<input type="file" name="uploadedF ile"><input type="hidden"
name="uploadTyp e" value="image"></div>
<div class="formElem ent">
Type an easy to read name (as opposed to the file name) for this
image:
<div class="inputBox Title"><input id="inputId2" type="text"
name="formInput s[cbHeadline]" value="" class="textInpu t">
</div></div>
<div class="formElem ent">
Type a brief description:<br >
<textarea id="inputId3" name="formInput s[cbMainContent]"
class="textarea Input"></textarea>
<p>HTML into symbols? <input type="checkbox"
name="formInput s[usingHtml]" value="y" class="textarea Checkbox"></p>
</div>
<input type="hidden" name="formInput s[cbWhichType]" value="imageInf o">
<input type="hidden" name="choiceMad e" value="standard ImageUpload">
<input type="hidden" name="fileName" value="">
<input type="submit" value="Click here when done" class="submitIn put">
</form></div>
expect the image name as a var to be $uploadedFile. In the receiving
function, I've this code:
global $uploadedFile, $uploadedFile_s ize, $uploadedFile_n ame;
echo "here is the file name: $uploadedFile, $uploadedFile_s ize,
$uploadedFile_n ame; <hr> ";
$uploadedFile_n ame =
$formatTextObje ct->processFileNam e($uploadedFile _name);
$uploadedFile_n ame = htmlspecialchar s($uploadedFile _name);
The line where I echo things out is just for debugging. I get the
first 5 words, but no vars, nothing, no globals of that name are in
global space. Below is the form. What am I missing?
[color=blue][color=green][color=darkred]
>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >[/color][/color][/color]
<form method="post" action="/mcControlPanel. php"
enctype="multip art/form-data" class="mcForm">
<input id="inputId1" type="hidden"
name="formInput s[formSecurityRat ing]" value="associat e"
class="hiddenIn put">
<div class="formElem ent">
Upload an image:
<input type="file" name="uploadedF ile"><input type="hidden"
name="uploadTyp e" value="image"></div>
<div class="formElem ent">
Type an easy to read name (as opposed to the file name) for this
image:
<div class="inputBox Title"><input id="inputId2" type="text"
name="formInput s[cbHeadline]" value="" class="textInpu t">
</div></div>
<div class="formElem ent">
Type a brief description:<br >
<textarea id="inputId3" name="formInput s[cbMainContent]"
class="textarea Input"></textarea>
<p>HTML into symbols? <input type="checkbox"
name="formInput s[usingHtml]" value="y" class="textarea Checkbox"></p>
</div>
<input type="hidden" name="formInput s[cbWhichType]" value="imageInf o">
<input type="hidden" name="choiceMad e" value="standard ImageUpload">
<input type="hidden" name="fileName" value="">
<input type="submit" value="Click here when done" class="submitIn put">
</form></div>
Comment