Re: [webmin-devel] Input validation
"Jamie Cameron" <[email protected]> Fri, 12 Apr 2013 12:44:01 -0700 (PDT)
| Newsgroups | gmane.comp.web.webmin.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--bound1365795841
Content-Type: multipart/alternative; boundary="altsbound1365795841"
Content-Transfer-Encoding: 7bit
--altsbound1365795841
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Usually I would do this on the server side, with code like :
if ($in{'fieldname'} !~ /[0-9]/) {
error("You must enter a digit");
}
On 12/Apr/2013 06:02 Emma wasanzy <[email protected]> wrote ..
Hello,
Please how can I force a user to input a digit in a textbox? Or how to
validate the input to make sure is a digit?
Cheers!
--altsbound1365795841
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<p>Usually I would do this on the server side, with code like :<br /><br />if ($in{'fieldname'} !~ /[0-9]/) {<br /> error("You must enter a digit");<br />} </p>
<p>On 12/Apr/2013 06:02 Emma wasanzy <[email protected]> wrote ..
</p>
<blockquote type="cite">
<div dir="ltr">Hello,
<div><br /></div>
<div>Please how can I force a user to input a digit in a textbox? Or how to validate the input to make sure is a digit?</div>
<div><br /></div>
<div>Cheers!</div>
</div>
</blockquote><br />
--altsbound1365795841--
--bound1365795841
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
--bound1365795841
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
--bound1365795841--