Hi all,
I'm new to PHP and I'm trying to learn from a book/examples. So far everything else has worked out just fine, but I can't seem to get this script correct. I've copied the script off the book, and I've gone over it several times, but I can't seem to get it right....
I'm making a simple form selection list. The form comes up, and there are the correct number of choices. The only problem is that you can't actually see the choices. Which is neatly explained by the source code. Only problem is that I can't seem to figure out what I'm doing wrong..
From source code:
script:
These are the parts of the script I find relevant for the error. The getLabel and getName parts from the last function works, but not the getOptions.... If this is too little of the script to think of anything, just say and i'll give you the remaining part...
Edit:
after i press submit, I get this output:
array(4) { ["fruit_sel"]=> string(0) "" ["metal_sel"]=> string(0) "" ["animal_sel"]=> string(0) "" ["submit"]=> string(6) "Submit" }