|
Posted by Jonathan N. Little on 01/04/07 14:44
Geoff wrote:
> Hi.
> I want to check the number of characters which have ben entered into a
> textbox on a form. Then, if the number is (say) 15, to display a message.
> If the number of characters is more or less than this, then display a
> different message. Can this be done in HTML alone, I don't really want
> to use javascript. Are functions like CHR_LEN available in HTML?
No. HTML is just a markup language. Once you say "function" that implies
program that has methods... It would require JavaScript to do what you wish.
>
> Secondly, I want the number that has been entered, to be added to a list on
> a hidden page. If anyone can point me in the right direction, I would be
> most grateful.
Now here you lose me. DO you mean something like a tally for a poll? If
so you need some server-side scripting. Your form would have to post to,
specified in the ACTION attribute of your FORM element. The script would
have to process and store said value in some sort of data file or database.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|