Link to home
Start Free TrialLog in
Avatar of LOGTECHSERV
LOGTECHSERV

asked on

HTML Code that will provide Authentication to i site

I am trying to get some code that allows me to have a user Type in an Employer Number 54321009876512 and then the code would check to make sure the firts 7 Didget were 5432100 and that the number was 14 Charicters  long and the would forwared them to a web link

Example : Type in  543210098765412  Submit   www.google.com window would open.
Avatar of mukhtar2t
mukhtar2t

if substr($str,0,7) = '5432100' and length($str) == 14
Avatar of LOGTECHSERV

ASKER

I Have no clue what that means im sorrry i am the farthest ting from a programer  im just looking for somethiing to cut and paste in to a html page.

Thanks
you can not do this by html
HTML just display the text
However you can use PHP
if(substr($str,0,7) = '5432100' ) and (length($str) == 14)
{
do whatever you want
}
ASKER CERTIFIED SOLUTION
Avatar of veiko_1001
veiko_1001

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry remove the value="54321009876512" part from the text field, I was just using that to try it out. So the form should actually look like this:

      <form name="myForm">
            <input type="text" name="myTextField" /><br />
            <input type="button" name="myButton" value="Submit" onclick="javascript: verifyCode();" />
      </form>