This may sound confusing but I have a textbox which is a cell number textbox and I want when the max length of 10 has been reached then fire the php code which is inside the same html page as form and this php code will then get the value or data which has been keyed in to this text box. I've tried Javascript and the problem I'm having with javasacript is to now display this data so that why I've deiced to change to php because I know how to display the php session data within the textbox with something like
<input type="text" id="dCell" value="<?php echo $_SESSION['mySessionIDHere'];?>">"
so I tried to do something like this but with javascript but the whole tag codes just show on screen when I run load the page so that why I've choose to go with php.
Please do note that the page is HTML and the input from which I want to take the data from is also in html not php the php function script will be written within the html page so all of this will be in one page not that it will be passed to another page no.