You are here: Re: Maths in HTML « HTML « IT news, forums, messages
Re: Maths in HTML

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация