Search code examples
javascriptwireless

Any way to determine wireless connection or cable connection via PHP or Javascript?


On the website, I want to know if the visitor is using wireless or cable connection. Any way to do that?

The reason I want to do this is to offer geo location service when the user is using wireless which is more accurate than using cable. I don't want to offer this service at all when it's a cable connection because the location would be wrong.


Solution

  • <form action="conType.php">
    I am visiting via  ...<br />
    <input type="radio" name="conType" value="wireless" /> Wireless<br />
    <input type="radio" name="conType" value="cable" /> Cable
    <input type="submit" />
    </form>