Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 May 2015, 19:20
sodagod sodagod is offline
 
Join Date: Sep 2009
need help with print_select_row

I am trying to get the selected option, but it always returns a number.

here is how i did it.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

this always results in the number of selected option, I also tried type_array as type_str and that didnt work.
Reply With Quote
  #2  
Old 22 May 2015, 19:47
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
You can either use the number returned as a key to the array, so that the last line in your example might be:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Or else you can make the array keys the values you want to get back, like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I'd probably go with the first one if you can because if you use the same text you display you might run it to problems if it contains punctuation or something. If the choices are simple strings then it probably doesn't matter. Actually it might not matter either way, I guess it's just that I would do it the first way because I'm not sure.
Reply With Quote
  #3  
Old 22 May 2015, 20:32
sodagod sodagod is offline
 
Join Date: Sep 2009
first option works better, i tried that before, but I wasn't using the array value.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 07:46.

Layout Options | Width: Wide Color: