If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ASP with Form

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-27-04, 08:08
gop373 gop373 is offline
Registered User
 
Join Date: Aug 2004
Posts: 77
ASP with Form

<input type="text" size="5" name="pricestock" maxlength="4" value="<%=rst("price")%>">

By using code above the user will be able to change the data.

Are there any way that do not allow the user to change the data .
Reply With Quote
  #2 (permalink)  
Old 10-27-04, 09:56
hughewil hughewil is offline
Registered User
 
Join Date: Oct 2004
Posts: 3
Make your input box hidden
<input type=hidden id=someid value=<%=somevalue%>>
and if you want to display the results to the user just use
<%=somevalue%>
Reply With Quote
  #3 (permalink)  
Old 10-27-04, 16:58
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
there is a enabled attribute (or is it disabled) that should do it...
Code:
 <input type="text" size="5" name="pricestock" maxlength="4" value="<%=rst("price")%>" enabled="false">
or
Code:
 <input type="text" size="5" name="pricestock" maxlength="4" value="<%=rst("price")%>" disabled="true">
actually could even be....
Code:
 <input type="text" size="5" name="pricestock" maxlength="4" value="<%=rst("price")%>" readonly="true">
Reply With Quote
  #4 (permalink)  
Old 10-27-04, 17:02
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
correct version....
Code:
<input type="text" size="5" name="pricestock" maxlength="4" value="<%=rst("price")%>" readonly>
Reply With Quote
  #5 (permalink)  
Old 11-03-04, 10:22
gop373 gop373 is offline
Registered User
 
Join Date: Aug 2004
Posts: 77
Smile

Thanks you very much !!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On