Location: PHPKode > projects > Einkaufszettelgenerator > EZettel0.1/input.php
<?
session_start();
$us= $HTTP_SESSION_VARS['uid'];
//echo "user=$us<br>";  
?>
<LINK REL="stylesheet" TYPE="text/css" HREF="menu.css">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Menu - start</title>

</head>
<body class="body1">
<P><P>
<TABLE BORDER=1 align=center class=prod cellspacing="2">
<form  name=prod_input Method=post action=prod_to_db.php> 
<TR ><TD class=table>Artikelname</TD><TD><input type=text name=prod_name size=50 class="field"></TD></TR> 
<TR><TD class="table">Artikeltype</TD><TD><SELECT name=prod_type class="field">
<?
 include("menu.ini");                                                                                      

$strsql1 = "select typ_name,typ_id from prod_type where user_id='$us' ORDER BY typ_id;";
$result1 = mysql_query($strsql1, $connection);
   $i=0;
    while ( $row = mysql_fetch_row($result1) )
       {
        $i+=1;                                                                
	echo "<OPTION>$row[0]</OPTION><BR>";
        }
?>
</SELECT>                                          
</TD></TR>  
<TR><TD class="table">Цена</TD><TD><input type=text name=prod_price size=5 class="field"></TD></TR>   
<TR><TD class="table">Количество</TD><TD><input type=text name=menge size=5 class="field"></TD></TR>  
<TR><TD class="table">Магазин</TD><TD><SELECT name=markt class="field">
 <?

$strsql_m = "select * from markt where user_id='$us'";
$result_m = mysql_query($strsql_m, $connection);
   $m=0;
    while ( $row_m = mysql_fetch_row($result_m) )
       {
        $m+=1;
        echo "<OPTION>$row_m[1]</OPTION><BR>";
        }
?>                                        
</SELECT>  </TD></TR>
<TR><TD class="table">Покупать всегда</TD><TD><input type=checkbox name=const value=Yes class="field"></TD></TR> 
<TR><TD COLSPAN=2><INPUT type=submit value=Input name=Submit></TD></TR></TABLE>
</FORM>                                                                               
Return current item: Einkaufszettelgenerator