next up previous contents
Next: A.10 insertcheck.php4 Up: A. Der Programmcode Previous: A.8 text.php4

A.9 insert.php4


<?
    // Authentication, if valid, allow to enter new link and data
    error_reporting(0); // 0 = none, 63 = full
    include("./config.php4");
    
    // Debug Information and initialisation

    session_start();
    headerNoCache();

    // Initialize connection to DB
    $db = mysql_pconnect($hostname, $username, $password);
    mysql_select_db($database,$db);
    $uuid=checkAuth($user, $pwd, $db);

    // Login sucessfull
    echo "
            <wml>
            <card id=\"c1\" title=\"Dateneingabe\">
            <p>
            Name des Eintrags:<br/>
            <input name=\"link\" maxlength=\"15\" value=\"\"/><br/>
            Daten:<br/>
            <input name=\"data\" maxlength=\"500\"/><br/>
             <anchor>&#220;bernehmen<go method=\"post\"
                 href=\"insertcheck.php4?PHPSESSID=";
              echo session_id();
              echo "\">
                <postfield name=\"link\" value=\"\$(link)\"/>
                <postfield name=\"data\" value=\"\$(data)\"/>
              </go>
            </anchor>
            <br/><a href=\"links.php4\">Abbruch</a>
            </p>
            <do type=\"prev\" label=\"Zur&#252;ck\"><prev/></do>
            </card>
            </wml>
    ";
?>



2001-06-21 Copyright by Jens Bierkandt, bierkandt@waptune24.de, waptune24.de