Comboboxen

  • Hallo gibt es in Html die möglichekeinten Comboboxen aufzubauen, also auswahltboxen bei denen ich aber in das feld z.B. die ersten beiden buchstaben schreiben kann und die auswahlliste zeigt mir die passenden einträge. ich suche quasi so etwas wie das addresseingabefeld des browsers

    Danke im voraus Marco

  • Quatsch - Geht ganz einfach. Hier hast du einen Teil davon - der Rest find ich grad nicht mehr aber dürfte nicht mehr so schwierig sein das noch zu ergänzen:


    [php:1:a8894141ac]2.Seite

    <title>Roche CLCM Database</title><body bgcolor="#E7B725">
    <?php

    //____________________________________________
    //START OF CONFIGURATION
    //____________________________________________
    //relative path from this script to folder where images must upload
    $dir='../pictures';
    //apsolut URL path from begin of your site
    $apsolut_dir="http://informatics.roche.com/pictures";
    //____________________________________________
    //END OF CONFIGURATION
    //____________________________________________

    //begin of code
    if (!$func) {
    $func = "one";
    }
    switch ($func) {
    case one:

    break;

    case two:
    //collect the name from POST VARS
    $ime="{$HTTP_POST_VARS['picname']}";
    //get type of file
    $ekst=$uploadedfile_type;
    //get lenght of image type
    $duzina=strlen($ekst);
    //get part of file image to build image extension
    $pos=strpos($ekst,"/")+1;
    //build extension of image
    $ekstenzija=substr($ekst,$pos,$duzina);
    //correct errors with some images
    //jpg
    if($ekstenzija=="pjpeg"){
    $ekstenzija="jpg";
    }
    //png
    if($ekstenzija=="x-png"){
    $ekstenzija="png";
    }
    //wmf
    if($ekstenzija=="x-wmf"){
    $ekstenzija="wmf";
    }
    //psd
    if($ekstenzija=="octet-stream"){
    $ekstenzija="psd";
    }
    //added in version 0.2
    //if the name is empty copy name of image from your HDD
    //that correct error if you do not enter new name of image
    if (!$ime)
    {
    $ime=$uploadedfile_name;
    }
    //build new name of name that you specified, . and extension of image
    else {
    $ime.=".".$ekstenzija;
    }
    //if image exist, upload it in correct dir and save to database
    $pic="http://informatics.roche.com/clcm/pictures/".$ime;

    //connect include
    include ("connect.php");

    //Insert Data into table....

    $s= OCIParse ($c, "UPDATE TBL_STANDARDS SET PIC='$pic' WHERE ID='$id2'");
    OCIExecute ($s, OCI_DEFAULT);

    //insert data into tbl_time to enter the date and time from this moment
    $s2= OCIParse ($c, "UPDATE TBL_TIME SET TIME='$time'");
    OCIExecute ($s2, OCI_DEFAULT);

    //commit to save changes...

    OCICommit ($c);

    if($uploadedfile<>"none") {
    if(!copy($uploadedfile,"$dir/$ime"))
    {
    //display errors
    print("Error: image did not send.
    ");
    print("Image is too big or it does not exist.
    ");
    print("Try again.");
    }
    //or finish

    else {


    //output
    print("Image has been sent.
    image location on server is: $apsolut_dir/$ime");
    }
    }
    break;

    }
    ?>
    <form name="form1" method="post" action="add_data.php">
    <input type="submit" name="Submit" value="go back to add more pictures">
    </form>

    ?>[/php:1:a8894141ac]

    Fragen einfach stellen halt :roll: