I'm trying to pass a value from a hidden (for now, testing purposes) input field on the homepage to the process function in class.upload.php. Here's my code:
index.php
<input type="hidden" name="visibility" value="public">
and in class.upload.php
$_POST['visibility'] <- returns an empty value
Is there some flow that a variable needs to follow that I'm missing?
I've even tried the following:
in upload.php
$visibility = $_POST['visibility'];
in uploader.php
$upload->visibility = $visibility;
and tried setting the variable in class.upload.php
$vis = $this->visibility;
also
$vis = $upload->visibility;
Dafuq?
index.php
<input type="hidden" name="visibility" value="public">
and in class.upload.php
$_POST['visibility'] <- returns an empty value
Is there some flow that a variable needs to follow that I'm missing?
I've even tried the following:
in upload.php
$visibility = $_POST['visibility'];
in uploader.php
$upload->visibility = $visibility;
and tried setting the variable in class.upload.php
$vis = $this->visibility;
also
$vis = $upload->visibility;
Dafuq?