Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005
    Posts
    3

    Unanswered: Help On Array for CGI file

    Hi,

    I dont know if im on the right Thread Here.

    I would like some help on coding an array with the dates and then put into dropdown menu [mm/dd/yyyy]

    Where could i find these codes.

    The array are going in a CGI file.

    So are i have creaded a table Date: [MM/DD/YYYY]

    I'm missing the array [others codes].


    </TR>
    </TABLE>

    <br>
    <TABLE width="330">
    <tr>
    <TD width="130"><FONT FACE="Arial" SIZE="2"><CENTER>Date: </CENTER></FONT></TD>
    <TD width="200"><select name="tourdate" size="1">
    <option value="January 1, 2005">January 1, 2005</option>
    <option value="January 2, 2005">January 2, 2005</option>
    <option value="January 3, 2005">January 3, 2005</option>
    <option value="January 4, 2005">January 4, 2005</option>
    <option value="January 5, 2005">January 5, 2005</option>
    <option value="January 6, 2005">January 6, 2005</option>
    <option value="January 7, 2005">January 7, 2005</option>
    <option value="January 8, 2005">January 8, 2005</option>
    <option value="January 9, 2005">January 9, 2005</option>
    <option value="January 10, 2005">January 10, 2005</option>
    <option value="January 11, 2005">January 11, 2005</option>
    <option value="January 12, 2005">January 12, 2005</option>
    <option value="January 13, 2005">January 13, 2005</option>
    <option value="January 14, 2005">January 14, 2005</option>
    <option value="January 15, 2005">January 15, 2005</option>
    <option value="January 16, 2005">January 16, 2005</option>
    <option value="January 17, 2005">January 17, 2005</option>
    <option value="January 18, 2005">January 18, 2005</option>
    <option value="January 19, 2005">January 19, 2005</option>
    <option value="January 20, 2005">January 20, 2005</option>
    <option value="January 21, 2005">January 21, 2005</option>
    <option value="January 22, 2005">January 22, 2005</option>
    <option value="January 23, 2005">January 23, 2005</option>
    <option value="January 24, 2005">January 24, 2005</option>
    <option value="January 25, 2005">January 25, 2005</option>
    <option value="January 26, 2005">January 26, 2005</option>
    <option value="January 27, 2005">January 27, 2005</option>
    <option value="January 28, 2005">January 28, 2005</option>
    <option value="January 29, 2005">January 29, 2005</option>
    <option value="January 30, 2005">January 30, 2005</option>
    <option value="January 31, 2005">January 31, 2005</option>
    </select></TD>
    </tr>


    Can Anyone Help me please!

  2. #2
    Join Date
    Feb 2005
    Location
    NY
    Posts
    1
    get all values from date table into some @a_array, then
    print ' </TR>
    </TABLE>

    <br>
    <TABLE width="330">
    <tr>
    <TD width="130"><FONT FACE="Arial" SIZE="2"><CENTER>Date: </CENTER></FONT></TD>
    <TD width="200"><select name="tourdate" size="1">';

    foreach (@a_array) {
    print '<option value="', $_, '">', $_, '</option>';
    }

    print '</select></TD></tr>';

  3. #3
    Join Date
    Jan 2005
    Posts
    3

    Talking .

    Quote Originally Posted by russonline
    get all values from date table into some @a_array, then
    print ' </TR>
    </TABLE>

    <br>
    <TABLE width="330">
    <tr>
    <TD width="130"><FONT FACE="Arial" SIZE="2"><CENTER>Date: </CENTER></FONT></TD>
    <TD width="200"><select name="tourdate" size="1">';

    foreach (@a_array) {
    print '<option value="', $_, '">', $_, '</option>';
    }

    print '</select></TD></tr>';
    Thank You.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •