Print Page | Close Window

How can change value?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=432
Printed Date: 29 March 2026 at 7:47pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How can change value?
Posted By: arash_s_h
Subject: How can change value?
Date Posted: 22 February 2003 at 4:54pm

Hi

I want that when write a character in the textbox,if the character was a number(Integer) this couls add to database, but if the character wasn't a number ,it couldn't add to database.Please help me.

Best Regards.

 



-------------
Arash Sayyed Haghighi



Replies:
Posted By: michael
Date Posted: 22 February 2003 at 10:35pm

<%
intValue = Request.Form("textbox")
If IsNumeric(intValue) = False THEN
 Response.Write "You entered nonumeric data in fieldname ....blah"
 
Response.End
END IF
...
%>

This is a vb example, it might be better to check that with javascript on the form page itself. there are tons of ready scripts out there that validate your form. But double is better as a client might have disabled JS.



Posted By: arash_s_h
Date Posted: 23 February 2003 at 2:38pm
thanks for you

-------------
Arash Sayyed Haghighi



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net