Forum Moderators: coopster
Currently i have made login form a drop down box with an array of server IP address, $servers
And the form inputs those IP address into the drop down, then the user types in his server PORT and rcon password.
The login verifys this data via the game server through a udp packet.
Problam is, i dont want people whos game server ip addys arn't in the array to be able to login. Currently this can be easily done my copying the form to another site and removing the drop down with a text field.
What i want to work out is how i can make the process when the login button is clicked to check and see if the post of $_POST['server_ip'] is in the array of $servers
If anyone can help with this i would be most apprciative.
Heres my if statement when you click login
if (
!empty($_POST['server_ip']) &&
!empty($_POST['server_pass']) &&
!empty($_POST['server_port']) &&
// this is where the new part should go