Hello all!
I'm no programmer, but I have to try to complete some code for a
project that we are working on. There will be a web page that is set up
to register devices online. Part of the registration process will
require the user to select the type of device from a select box, and
then enter the MAC address for the device.
On the web page there will be two fields, a select box, and a text
field. The select box will have four choices:
<SELECT name="Device">
<option value="" selected>[choose yours]
<option value="GameCube">GameCube
<option value="PS2">PS2
<option value="XBox">XBox
The text field will have a default value of XX-XX-XX-XX-XX-XX. I
already have a way to validate that they only put in 0-9, A-F, or a-f.
For the sake of example, let's say that GameCubes have a factory set
MAC address that begins with 00-00-00-00, PS2s have a factory set MAC
address that begins with 00-00-00-01, and XBoxes have a factory set MAC
address that begins with 00-00-00-02.
I want to validate that when the user selects GameCube as their device,
that they also input a MAC address that begins with 00-00-00-00. Does
this make sense?
Please let me know if you need more details.
Thanks for any help that you can provide!
Lee