Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  How to force numerical input? (Not allow text to be written)

phpMyEdit General     How to force numerical input? (Not allow text to be written)
Post new topic   Reply to topic    
 
lanbo     Joined: 08 Jan 2004   Posts: 4  
Post Posted: 2004-01-14 14:04
Back to top  Reply with quote     

Hi all,

I'm already using the option below, but I can Change or Add a field and input text within the box. Then this text is automatically transformed to the default integer value, but I wonder if there is an option to force a Javascript warning or anything.
Thanks!

$opts['fdd']['col_name']['select'] = 'N'; // numeric

 
hbernard     Joined: 23 Mar 2003   Posts: 159   Location: FRANCE
Post Posted: 2004-01-14 20:16
Back to top  Reply with quote     

Well, AFAIK, there currently no javascript validation on the type level.

But you may use triggers, like in
http://opensource.platon.sk/forum/projects/viewtopic.php?t=183
(and see this nice link from Doug : http://phpvs.com/misc/forum1.php)

This is not exactly what you want, but it can be a workaround.

 
hbernard     Joined: 23 Mar 2003   Posts: 159   Location: FRANCE
Post Posted: 2004-01-14 22:13
Back to top  Reply with quote     

I just opened a bug about this kind of feature

See :

http://opensource.platon.sk/projects/bug_view_advanced_page.php?f_bug_id=161

The patch uploaded there is correctly working for me.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy