What Im trying to do is ship the tables primary key in a regular text box (later I willl make it hidden) Here's what I have, but it doesn't work, little help
<? printf ('<input type=text name=CatID value="'.$result['CatID'].'">'); ?>
Try echoing the variable first to see if it even has a value.
<? echo "Does This var have a value? " . $result["CatID"] . "<br>"; echo "<input type=\"text\" name=\"CatID\" value=\"".$result["CatID"]."\">"; ?>
What does that print?
Cgraz
All is the striing "Does this var have a value and annn emptry text bok, the PK (CatID) would change depending on what is in a combo box
If I put the code snippet you gave me before the combo box, the variables value is always 5 (even if I make a different selection in the combo box. On the other hand, if I put your code after the combo box, the variable is empty, do you know why?
can you post more of your code?