I'm trying to get a dropdown box to select based on the URL. I would like the url
http://example.com/login.php?port=2095
or something similar to automatically select Webmail on load and for ?port=2082 to select cPanel?
Here is my form
<form action="cplogin.php" method="post">
Username:<input type="text" name="user"></td></tr>
Password:<input type="password" name="pass"></td></tr>
Login To:
<select name="port">
<option value="2082">cPanel</option>
<option value="2083">Secure cPanel</option>
<option value="2095">Webmail</option>
<option value="2096">Secure Webmail</option>
</select>
<input type="submit" name="login" value="login" style="cursor:pointer">
</td>
</tr>
</table>
</form>
I have look online but can't seem to find an answer.