Results 1 to 1 of 1

Thread: javascript and php

  1. #1
    Join Date
    Feb 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default javascript and php

    I have this lines:


    PHP Code:
    <form action="" method="POST">
    <select class="mySelect" name="option_language"  onchange="this.form.submit();">

    <?php

     $option_handle 
    opendir PATH '/langs');
     while (
    false !== ($file readdir($option_handle)))
      {
       if ( 
    ereg ('.lng.php'$file) )
        {
         
    $option_language explode ('.'$file);
         echo 
    '<option value="' $option_language[0] . '" ';
         if (
    $cookie_language == $option_language[0]) echo 'SELECTED';
         echo 
    '>' $option_language[0] . '</option>';
        }
      }
     
    closedir ($option_handle);

    ?>

    </select>
    </form>
    if i want to change from an select form to anything else - image buttons, simple text - i'm stuck. how can this select can be transform to anything else?Please, anyone can help me?
    Last edited by jscheuer1; 05-29-2008 at 05:53 AM. Reason: format code to PHP

Bookmarks

Posting Permissions

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