473,326 Members | 2,175 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

disable form, then what?

Hi guys,

If I want to block a user to change a form after submiting, I add a
function that will disable the submit button, but when I'm getting the form
collection (using post or get (form/querystring) I can't retrieve that
button value...
Is there any trick to do this?

Like https://www.cuworld.com/ webpage... Try to register as a free user
membership and after click the submit button check what hapend... They
disable all the form (checking the source code, they disable every form
input box) How can they retrieve the values if the form is disable?
<script language="javascript" type="text/javascript">
function submitOrder() {
var count = order_form.all.length;
for ( var i = 0 ; i < count; i++ ) {
try {
order_form.all[i].disabled = true;
}
catch (ignore) { }
}
}
</script>

All help is apreciate.

--

Bruno Alexandre
(Sintra, PORTUGAL)



Jul 19 '05 #1
2 1512
Bruno Alexandre wrote on 20 aug 2004 in
microsoft.public.inetserver.asp.general:
If I want to block a user to change a form after submiting, I add a
function that will disable the submit button, but when I'm getting the
form collection (using post or get (form/querystring) I can't retrieve
that button value...
Is there any trick to do this? <script language="javascript" type="text/javascript">


1
This is all clientside code, so OT here. Please ask elswhere.

2
Why not serverside disallowing a second submit, or overwriting the page
with another content without the <form>?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
Is it tomorrow already?
"Bruno Alexandre" <br***@filtrarte.com> wrote in message
news:eM*************@TK2MSFTNGP10.phx.gbl...
Hi guys,

If I want to block a user to change a form after submiting, I add a
function that will disable the submit button, but when I'm getting the
form
collection (using post or get (form/querystring) I can't retrieve that
button value...
Is there any trick to do this?

Like https://www.cuworld.com/ webpage... Try to register as a free user
membership and after click the submit button check what hapend... They
disable all the form (checking the source code, they disable every form
input box) How can they retrieve the values if the form is disable?
<script language="javascript" type="text/javascript">
function submitOrder() {
var count = order_form.all.length;
for ( var i = 0 ; i < count; i++ ) {
try {
order_form.all[i].disabled = true;
}
catch (ignore) { }
}
}
</script>

All help is apreciate.

--

Bruno Alexandre
(Sintra, PORTUGAL)


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: JML | last post by:
Hi guys, I need HELP I am trying to disable submit button after user submits the form. thanks in advance --
12
by: Forti2ude | last post by:
Hello, I have a simple form... <form> <select name="foo" multiple> <option value="1">one</option> <option value="2">two</option> <option value="3">three</option> </select>
0
by: Marcel | last post by:
Hi, the application I am writing has a MainMenu and a DataGrid (UltraGrid). Now I have to edit the text of each cell in this grid. So far so good. All works fine in editmode but if I press a...
6
by: Al Cohen | last post by:
I'm using a LinkButton to call some code, then do a redirect. The code does some queries, sends some emails, and takes a few moments before the redirect is performed. I'd like to disable my...
9
by: junlia | last post by:
Does anyone how how can we disable the auto-postback feature in asp.net page? I have to use a server side control in the page, but the auto post back feature in it causes problems for me. Please...
13
by: Rich | last post by:
Hello, So I would like to disable a textbox on a vb.net form without the text getting grayed out. In vb6 I could place a textbox control on a frame control and disable the frame leaving the...
4
by: Chris | last post by:
I have an asp.net page say page1.aspx. The form in html code is <form id = "Form1"> And i want to disable all the fields of the form after some code steps. I had created a javascript funct: ...
0
by: Ahmad Jalil Qarshi | last post by:
Hi! I have a problem while developing some webpages.The Problem is that:- How We Can Disable The Controls Of One Web Form From Other Web Form In Asp.net? Explanation:- There Should Be Two...
9
by: surf_doggie | last post by:
Im not sure if this is the group to post in, if anyone knows a more appropriate one please let me know. Please consider the following example of a feature most all browsers have that I would...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.