Hi
thanx for your support so far. I found out that my problem still remains and I think my main problem is that the hidden input type is not submitted. When my form is browsed it is initialized like "http:www.myForm.com/?poser=ACME"
Now my selection lists are generated according to the poser. Now the user selects some value this value will be submitted and the poser which I thougt is submitted by the hidden field should be transferred as well.
But if i do so the hidden value is empty.
Can someone help me?
Thank you very much in advance
This is the code snippet, which is wrapped in form tags:
echo"<input type=\"hidden\" name=\"poser\" value=\"$poser\">";
$queryKey = "SELECT keyword "
."FROM KeywordGroup "
."WHERE poserName LIKE \"$poser\" "; //Keyword table// (AND ktype LIKE 'Contest')
echo"<select name=\"selectKey[]\" onChange=\"jumpMenu('parent',this,0)\">";
if(empty($keywordSENT)) //Initial state no keyword selected
{
$resKey = sybase_query($queryKey); //Result Set of keywords for poser
$x=0;
while($keyword = sybase_fetch_row($resKey)) //Reads result tuples
{
if($x == 0){$keywordSENT = $keyword[0]; } //Initial keyword is keywordSENT
$x++;
echo"<option name=\"keywordSENT\" value= \"$keyword[0]\">$keyword[0]</option>";
}
}
else //Conditioned state
{
$resKey = sybase_query($queryKey);
while($keyword = sybase_fetch_row($resKey))
{
if($keywordSENT == $keyword[0])
{
echo"<option name=\"keywordSENT\" value= \"$keyword[0]\" selected>$keyword[0]</option>";
}
else
{
echo"<option name=\"keywordSENT\" value= \"$keyword[0]\">$keyword[0]</option>";
}
}
}
echo"</select>";
?>