I must say that im very 😕 now im not so good at php but im learning a bit after a bit so one steaps at the time
Should it look some thing like this!! i
<?php
if(!ereg("[0-9]", $_POST['personnr']))
///should be only numbers and not only less or more then 10 numbers if not then it should print en error
how is the code! for a error display is it this you ment
if so please give an exampel.
?>
<form action="insert2.php" method="POST">
<B>Förnamn/Firstname:<FONT COLOR='#50538D'>___</FONT><input type="text" name="fornamn" /><FONT COLOR='#50538D'></FONT>Kön/Gender:<FONT COLOR='#50538D'>_____</FONT><input type="text" name="kon" />
<BR>
Efternamn/Lastname:<FONT COLOR='#50538D'>´</FONT><input type="text" name="efternamn" />
<BR>
Personnummer/Birthdate:<FONT COLOR='#50538D'>#'</FONT><input type="text" name="personnr" />
<BR>
<BR>
Postadress/Address:<FONT COLOR='#50538D'>_´</FONT><input type="text" name="adress" />
<BR>
E-post/E-mail:<FONT COLOR='#50538D'>____'</FONT> <input type="text" name="epost" />
<BR>
<BR>
Smeknamn/Nickname:<FONT COLOR='#50538D'></FONT><input type="text" name="smeknamn" /><FONT COLOR='#50538D'></FONT>Lösenord/Password:<FONT COLOR='#50538D'>''</FONT><input type="text" name="losenord" />
<BR>
<BR>
<FONT COLOR='#50538D'>_____________________________________</FONT>Verifiera lösenord/
<BR>
<FONT COLOR='#50538D'>____________________________________</FONT>Verify password:<FONT COLOR='#50538D'>__'</FONT><input type="text" name="losenord1" />
<BR>
<BR>
__________________