php4到php5调用另一个文件-php与输入类型不起作用

After a change from PHP4 to PHP5 a problem occurred, I cant find it in the migration FAQ.

<form method='post' action='galerie.php'>
<input type='hidden' name='kategorieid' value='$id'>
<input type='hidden' name='echtkategorie' value='$kategorie'>
<input type='hidden' value='' name='geaendert'>
<input name='imageField' type='image' src='../images/bearbeiten.gif' width='39' height='40' border='0' alt='Galerie &quot;$kategorie&quot; bearbeiten'>

I am calling galerie.php with some variables $id and $kategorie, but they wont appear in the galerie.php:

$_GET['id']

Won’t work in galerie.php I do $befehl="SELECT kategorie, id FROM $tabelle WHERE id='$kategorieid'"; but kategorieid is not there.

You are using method="post" which means that you should be using $_POST['id'] rather than $_GET['id'].