Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Changing select input to hidden input
Old 06-30-2009, 06:35 PM Changing select input to hidden input
Extreme Talker

Posts: 216
Trades: 0
I'm working with a php script that has a form for uploading video files.
One of the choices in the form is to choose a "channel".

I'd like help in changing this, so the user doesn't have to choose, it's always the same channel choice.

I was given some advice, but I could use some more information.
Here is the existing code that i'd like to change. And below that is the advice I was given.
Code:
<li style="width:240px; text-align:right;"><strong>[var.lang_select_channel]:</strong></li>
                <li style="width:400px; text-align:left;">
                  <select class="upload-video-form-input" style="width:160px;" size="1" name="channel" onchange="javascript:ahahscript.ahah('[var.base_url]/uploader.php?sub_cat='+ document.form_upload.channel.value, 'sub_change', '', 'GET', '', this);">
                  &nbsp;[var.fields_all;htmlconv=no]</select>&nbsp;([var.lang_select_one])
                </li>
The advice:
"You need to remove the select input, and add this type of hidden input:
<input type="hidden" name="
Can someone help me create the right replacement code, so it will hidden and automatically choose a single channel? Thanks.
chrisj is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-30-2009, 07:23 PM Re: Changing select input to hidden input
orionoreo's Avatar
Ultra Talker

Posts: 335
Name: Jerry
Trades: 0
i believe you wanted to post in the javascript section?

I'm not sure... so if somebody selected say channel2... every time they use the form it defaults to channel2?
orionoreo is offline
Reply With Quote
View Public Profile
 
Old 06-30-2009, 07:51 PM Re: Changing select input to hidden input
Extreme Talker

Posts: 216
Trades: 0
Thanks for your reply. This code is from a php page, so i thought this is the best venue.

Regarding channels, I, the admin, has set up one single channel. There are no other choices, yet the php script has a drop down to select this only choice. I'd like to remove the drop down, hide the only choice to make it a simpler experience for the user. Any help will be appreciated. thanks.
chrisj is offline
Reply With Quote
View Public Profile
 
Old 06-30-2009, 08:35 PM Re: Changing select input to hidden input
orionoreo's Avatar
Ultra Talker

Posts: 335
Name: Jerry
Trades: 0
oh just change the input to hidden

Code:
<input type="hidden" name="channel" value="1" />
orionoreo is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Changing select input to hidden input
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32905 seconds with 12 queries