PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sat Jul 20, 2019 3:51 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Mar 29, 2018 7:29 pm 
Offline
Forum Contributor

Joined: Fri Jul 18, 2014 1:54 pm
Posts: 179


Attachments:
ListboxInTable_ForceRowsSmall.png
ListboxInTable_ForceRowsSmall.png [ 21.01 KiB | Viewed 1768 times ]
ListboxInTable.png
ListboxInTable.png [ 24.84 KiB | Viewed 1768 times ]
Top
 Profile  
 
PostPosted: Thu Mar 29, 2018 8:53 pm 
Offline
Forum Contributor

Joined: Fri Jul 18, 2014 1:54 pm
Posts: 179
A clean post with the resulting code that worked, a comment and an attached picture. This was a tough one. If it was not for my handy dandy google search trick (mentioned near the end of the above post) I never would have found it. I also want to get a drop down for the songs (tomorrow - time to call it a day).

Syntax: [ Download ] [ Hide ]
$CurrRow = 0;
while($CurrRow <= 9) {
   $CurrRow = $CurrRow + 1;
   //START: The example that helped me get it to work
   //       https://stackoverflow.com/questions/230 ... using-html
   //       http://jsfiddle.net/5FyCA/
   //       MY NOTE: It seems the trick is to put the class='select' in the very first TD statement for each row. It processes the name='NewFakeBook[]' correctly when I click submit on the form.
   //END: The example that helped me get it to work

   echo("<tr>\n");
   echo("<td class='select' style='background-color:transparent;border:1px #c0c0c0 solid;text-align:left;vertical-align:top;height:18px;' ><input type='textbox' name='NewSongName[]' value='' size=35 ></td>\n");
   echo("
                <td><select name='NewFakeBook[]'>
                <option value='SelectFakebook' selected>SelectFakebook</option>
                <option value='RB_BC_V1'>RB_BC_V1</option>
                <option value='RB_BC_V2'>RB_BC_V2</option>
                <option value='RB_BC_V3'>RB_BC_V3</option>
                </select></td>
\n"
);
   echo("<td style='background-color:transparent;border:1px #c0c0c0 solid;text-align:left;vertical-align:top;height:18px;' ><input type='textbox' name='NewBPM[]' value='' size=1  ></td>\n");
   echo("<td style='background-color:transparent;border:1px #c0c0c0 solid;text-align:left;vertical-align:top;height:18px;' ><input type='textbox' name='NewSinging[]' value='' size=2  ></td>\n");
   echo("<td style='background-color:transparent;border:1px #c0c0c0 solid;text-align:left;vertical-align:top;height:18px;' ><input type='textbox' name='NewSemiToneShift[]' value='' size=8  ></td>\n");
   echo("<td style='background-color:transparent;border:1px #c0c0c0 solid;text-align:left;vertical-align:top;height:18px;' ><input type='textbox' name='NewSoloing[]' value='' size=2  ></td>\n");
  echo("</tr>\n");
} //while($CurrRow <= 9) {


Attachments:
It_Works.png
It_Works.png [ 25.34 KiB | Viewed 1765 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group