In a php video-web-script I’m using, in the (video)Upload Form I tried hiding the select-a-channel drop-down choices, essentially like this:
<li><input type="hidden" name="channel" value="1"/></li>
(so, that the Channel is pre-determined for the uploader/user).
But, when the Channel is hidden like that, the next field box(sub-categories) in the Form, shows no choices. Apparently, in this Upload Form a Channel choice is required in order to see the sub-category choices.
So, I’m trying to figure out a way to name the channel, and somehow let the Form know that Channel has been chosen/named, so that the sub-category drop-down choices are available for choosing, and proceeding.
Here’s the code with the Channel not hidden:
[CODE]
[var.lang_select_channel]:
[var.fields_all;htmlconv=no] ([var.lang_select_one])
[var.lang_sub_categories]
[var.lang_sub_cat]:
([var.lang_optional])[/CODE]
I tried adding this to uploader.php (which corresponds with the upload Form):
if(isset($_SESSION['channel_id'])) {
echo '<input type="hidden" name="channel" value="1">';
} else {
echo "<select class='upload-video-form-input' name='channel' onchange='javascript:ahahscript.ahah('[var.base_url]/uploader.php?sub_cat='+ document.form_upload.channel.value, 'sub_change', '', 'GET', '', this);'>
[var.fields_all;htmlconv=no]</select>";
}
which may work successfully, but, I’m not sure how to tie it in with the Form. Any help will be appreciated.