Hi there,
I have a form on my website which has an option to enter a value in a text box
or select a value from a list. What I want it to do is read from the text box
first and if that is left blank then take the selected value from the drop down
list. I have an if statement that sets a variable $hometeam according to the
chosen value from either the text box or the drop down list. This variable is
then entered into the database table.

The problem is that it seems to have a problem reading the input from the text
box. I have assigned a variable to this text box under 'value' in the input tag
but this doesn't work. I have also given it a name. When the If statement is
considering the input from the text box where does it get this value from. It
says the variable is undefined.

Is what I am trying to do impossible?