couple of thoughts...
first off...
do this on your text box on your form
<input name="watever u want" type="text" size="12" value="<? $_request['watever u want']; ?>">
noob definition 🙂 -> name = name of the textbox, this is what you will call to use that var. exp: print $watever u want;
type = type of form element. there are lots. text boxes, command buttons, list boxes, etc. this has to be there! So does name.
Size=12 is the max amount of characters that the user can type.
no reason to check if there's more than 12 if they cannot type it in!
value = "<? $request['watever u want']; ?>"
value is the value of the variable $watever u want. if u submit the form and then go back to edit something, than $request[''] will return as the value whatever they typed in before, so it's not blank when they go to edit it.
####
sounds like you might have the ereg function down. if not, hollar.
i agree with brad for ease of use and setup. make different text boxes for the mac address. divide each where the period is in the mac addy.
i believe another thing you can do. is for validation..
if $textbox.size <> (not equal) to 12 than
print please reinsert your mac addy.
####
with brads idea.. to concatinate the 3 text boxes:
$macaddress = $field1 . "." . $field2 . "." . $field3;
that should make mac addy look like this
fa3d.a39x.afk3 or however it's supposed to be.