hallo ich habe von einem früheren mitarbeiter php scripte übernommen und muss diese auf einen neuen server portieren. leider laufen diese dort aber nicht weil ich die folgenden fehlermeldungen erhalte: Notice: Use of undefined constant submit - assumed 'submit' in test.php on line 5 Notice: Undefined index: submit in test.php on line 5 Notice: Use of undefined constant id - assumed 'id' in test.php on line 6 Notice: Undefined index: id in test.php on line 6 Notice: Use of undefined constant jobtitel - assumed 'jobtitel' in test.php on line 7 Notice: Undefined index: jobtitel in test.php on line 7 das php-script: 
	
hat jemand eine ahnung? besten dank und grüsse reto
					PHP-Code:
	
	
<?
include('_dbaseopen.inc.php');
// POST Variablen Deklaration
$gID            = isset($_GET['id']);
$submit            = $_POST[submit];
$id                = $_POST[id];
$jobtitel        = $_POST[jobtitel];
    
// UPDATE SQL
if($submit == "Update"){
    $sql = "UPDATE stellenangebote SET jobtitel='$jobtitel' WHERE id=$id";
    $result_sql = mysql_query($sql,$conn);    
}
    
if($submit != "Update"){
    echo"<table cellpadding=0 cellspacing=0 border=0 width=760>";
    $res = mysql_query("SELECT * FROM stellenangebote WHERE id=$gID", $conn);
    $num = mysql_num_rows($res);
    
    for($i=0; $i<$num; $i++) {
        
    $id        = mysql_result($res, $i, "id");
    $jobtitel    = mysql_result($res, $i, "jobtitel");
    
    echo"
    <form METHOD=POST action=test.php>
    
    <input type=hidden name=gID value=\"$id\">
    
    <table cellpadding=0 cellspacing=0 border=0>
            <tr>
                <td class=details_titel>ID</td>
                <td class=details_text>$id</td>
            </tr>
            <tr>
                <td class=details_titel>Jobtitel</td>
                <td class=details_text><input type=text class=formular size=80 name=jobtitel value='$jobtitel'></td>
            </tr>
            
            <tr>
                <td> </td>
                <td><input type=submit name=submit value=Update class=button size=5></td>
            </tr>
        </table>";
    }
}
// RESULTAT-AUSGABE
else{
echo"
<table cellspacing=0 cellpadding=0 border=0>
    <tr>
        <td><p><span class=text>Die Daten wurden gespeichert</span></p></td>
    </tr>
</table>";
}
                        
?>
hat jemand eine ahnung? besten dank und grüsse reto
 
          

Kommentar