This is a discussion on "QTY entry help" within the Classic ASP section. This forum, and the thread "QTY entry help are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
QTY entry help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
QTY entry help
HI all
I've got a cart page with this code in it :- <% Sub AddToCartForm Response.Write "<form action='addtocart.asp' method='get'>" &_ "<input type='text' name='qty' value='1' size='3'>" &_ "<input type='hidden' name='Price' value='" & FormatNumber(myRS("Price"),2) &_ "'><input type='hidden' name='ProductID' value='" & myRS("ProductID") &_ "'><input type='hidden' name='CartID' value='" & CartID &_ "'><input type='submit' value='add'></form>" End Sub %> the prob is i want the user to not be able to enter a null entry in the text box ,i.e '0' can any one help improve my coding cheers |
|
|
|
|||
|
For real-time validation, you'd need to use javascript to check the value when it is changed (onChange), otherwise just check it on the target page of the formand send them back if its not right.
|
![]() |
| Tags |
| qty, entry, help |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Site of the month entry | meredith | Entry, Nominations and Voting | 0 | Oct 20th, 2005 18:47 |
| One to Many data entry | jakyra | Classic ASP | 4 | Nov 24th, 2003 19:50 |