how to get value from input html form using php
<p>can someone help me how can i get the value from input name="$photo_id" as state below after submitting the form.. should be $photo_id = $_GET['photo_id'] on the next page...  </p>

<pre><code>$picture = mysql_query( "SELECT * FROM gallery_photos where photo_category = ".$cid."    ");
while($row2 = mysql_fetch_array($picture)){ 

    $photo_id = $row2["photo_id"];
    $photo_filename = $row2["photo_filename"];
    $photo_caption = $row2["photo_caption"];
    $photo_category = $row2["photo_category"];

    echo "&lt;ul style='float:left; list-style:none; '&gt;";
    echo "&lt;li&gt;&lt;img src='".$images_dir."/tb_".$photo_filename."' border='0' alt='".$photo_caption."' /&gt;&lt;br /&gt;";
    echo "&lt;span&gt;&lt;input name='$photo_id' type='text' value='$photo_caption' /&gt;&lt;/li&gt;&lt;/span&gt;";
    echo "&lt;/ul&gt;";
    }
</code></pre>

<p>Thx :)</p>
