Hi I wrote a script in php3 and it worked fine I have now transfered this script to php4 and it doesnt work.
Basically it is for a transfer list so the first page for example is called transfer.php which has a form on it like this:
<select name="position2">
<option value="Select From List">Select From List</option>
<option value="Goalie">Goalies</option>
<option value="Defender">Defenders</option>
<option value="Winger">Wingers</option>
<option value="Midfield">Midfielders</option>
<option value="Striker">Striker</option>
</select>
I havent put the whole page in but that form is then posted to transfer2.php which used to take the form input name position2 and post it to the transfers2.php page which would then convert that position2 into $position2
Then in the transfers2.php page the following line would check for all entries that matched the form input:
$sql = "select * from players where Position = '$position2' and listed ='1'";
$result = mysql_query($sql);
Why doesnt this work now? and is there an easier way of passing a selection from
a form onto the next form which checks the database and displays all matching records.
Sorry if ive confused you but I can see no reason why it is no longer changing the input name into a variable.
Any Ideas
Thanx.....