Clearing A Submit
I have a form with 4 different Submit buttons. In the action code, I do a
request on the button names to see which one is valued. This all works
great, until the browser is refreshed -- the request shows the name of the
last button pressed. Is there a way to clear all the buttons so they don't
appear to have been pressed when they've only been refreshed?
View Replies
ADVERTISEMENT
I have a page that creates a cookie on your computer. at that point it stores login information. Seeing that I am on the administration side and wish to login to accounts without the cookie getting in the way, I create a page to delete the cookie as follows:
Response.Buffer = True
Dim Cookie
For Each Cookie In Response.Cookies
Response.Cookies(Cookie) = "this must be something!"
Response.Cookies(Cookie).Expires = Date() - 1
session.clear
session.Abandon()
Next ' Cookie
For Each Cookie In Response.Cookies
Response.Cookies(Cookie) = "this must be something!"
Response.Cookies(Cookie).Domain = "hazsoft.com"
Response.Cookies(Cookie).Expires = Date() - 1
session.clear
session.Abandon()
Next
This removes the cookie like i desire but, I must first reopen my browser for the cookie to be totally removed. As you can see I have also removed the session variables. Is there a way to remove cookies and session variables, without having to close the browser window?
View Replies
View Related
The code below isn't clearing the cookie and sessions. It is used in my shopping cart to track the user and the items purchased/added to the cart. After making a purchase you are directed to the receipt page (where this code is). If you go back to the main site the items still show in the cart. Any thoughts?
' The below lines clears out the users cookies to allow for additional orders
Response.Cookies("customerid") = ""
(this part seems to work... when clicking refresh the proper error message is displayed etc.)
' The below lines clear session values to avoid duplicate ordering using Refresh
session("cust") = 0
session("cartID") = 0
View Replies
View Related
Is there a way to clear cache using ASP, VBScript or Javascript?
I have created an ASP login page with sessions etc so unregistered members cannot view certain pages, however, when you logout you can still press the back button on the browser toolbar and view the pages, I want to find a way to make those pages expire by clearing the cache or something like that!
View Replies
View Related
Does anyone know how to clear a sites cache with ASP. I have a login script that does not terminate the history when signing out. A user can simply click the back button and get back into the site..
View Replies
View Related
Im useing Access, and trying to clear the table before i write to it, and to be able to keep it all on one page? Trunicate table or something like that? This is waht I have so far but doesnt work. Code:
View Replies
View Related
I assume it has to do with cache control, but how do I prevent the form from clearing when a user hits the back button? The form I am referring to is my registration page. After the registration is submitted, they are taken to an error handling page. If an error comes up, they are required to hit the back button and correct the mistake.
It seems like for the most part it retains all of the information in the fields, but occasionally it clears it out. How can I prevent this?
View Replies
View Related
How do I clear the data in this field before using the date function.?
<input type="text" size=35 name="DepartCentralDate" value="<%=x_DepartCentral %><%= FormatDateTime(Date, 1) %> <%= FormatDateTime(Now, 3)%>">
View Replies
View Related
How can you clear session variables when a reset button is pressed? I thought I might be able to do something like:
<%
If request.form("Reset") = "Reset" then
Session("variable") = Null
%>
Is this correct, it isn't working right so is there a better way?
View Replies
View Related
was there anyway to clear the data submitted by a form? What i need to do is once the page refreshes, clear the sent data?
View Replies
View Related
I searched the forum and got the following code from someone who posted it in 2002. However I can't seem to get it to work in my asp page. Can someone confirm the syntax for me? I would like to try and put it in an include file rather, but need to get it to work first.
Response.ExpiresAbsolute = #1/1/1980#
Response.AddHeader "cache-control", "no-store, must-revalidate, private"
Response.AddHeader "Pragma", "no-cache"
Response.Buffer = True
Regards
Ronel
View Replies
View Related
I have a form that comes up pre-filled with database results for the values. I'd like to add a button, though, that will clear all fields to start blank if desired.
A standard "reset" button, will only clear input that has been typed in, but won't clear the initial values. Does anyone have a script already that does this or could someone get me started on how I could do this?
View Replies
View Related
I am trying to run and UPDATE, INSERT and DELETE SQL statements to update append and delete data from some tables in access. Here is the low down:
I want to update All of the fields from a table called TEMP into a table called POSTPONED, WHERE the 'postponed' fields = "False"
I want to then go on and clear the records from TEMP that have the field postponed = "false"
And finally i want to again append the remaining data in the TEMP folder into a table called RESULTS.
Does any one know how to do this or what the SQL statements should look like, i have tried writting them, no luck, i have tried generating them in Access but no luck because the ASP is erroring me on them and i dont know what its chatting about!
View Replies
View Related
I have a form that on clicking of the Update button first updates
the specific record in the db, then Inserts if the vMemo field is not
empty. The problem that I'm having is that After updating if you hit
the [F5] key (refresh) it inserts another record ...
I have tried:
1. Clearing the vMemo field after the insert is done (vMemo = "")
2. Setting the value on the form for this field to ""
Neither of these are working. It's not displaying it on the screen
but it is holding it in memory (I guess). Any way to clear this out
after update/insert?
View Replies
View Related
I am having a problem with an update date query ( there is something wrong with my query both locally and live.
So it has to be the query as my system settings are UK format.
Basically when I go to amend a record without actually doing any changes whatsoever. an click submit, when I see the amend the date switches format, regardless of entering any information.
If I go back and amend the article without doing any changes the date format again is switched back to normal. This is causing big issues, that really need correcting but I cannot figure what I have done wrong. I did previosuly post a message, but this appears to be something diffirent other than local settings. Code:
View Replies
View Related
I'm just dipping my toes into server-side scripting.
The Global.asa file seemed really nice, but am I understanding correctly that the application onstart event is fired ONLY when the server is started/re-started or when the FIRST user logs onto an ASP application?
If that's the case, then all the changes I keep making to my Global.asa file are pretty useless, right? (which seems to be the case -- i.e., my pages are not using any of the new information). Code:
View Replies
View Related
i'm trying to get a drop down menu to submit automatically when an option is clicked. i've tried various javascripts and they don't seem to work correctly with asp. does anybody know of anything that will work properly?
View Replies
View Related
i hv wrote the code for auto generate id and its work. but the problem is, when i click on the submit button, the id number will remain the same value that is the last id number in database. let says before i click on the "New" button(which is use to increment id by 1) the id number is C1234.
once i click on "New" button then the id will increment by 1 as C1235 and that time user need to fill up the other field. but once i press on Submit button, the id number suppose to be C1235. but what i get is that C1234 means that i will display the previous id.
View Replies
View Related
I have 2 buttons on my ASP page:
Insert
Search
When i click on the Insert button it does a form sumbit and calls a page "page1.asp" when i click on the button Search i want it to do a sumbit to another page "page2.asp"
I tried putting 2 form sections in my asp page but it doesn't work..
View Replies
View Related
Is there a way in ASP to programmatically cause an HTML form to submit without clicking a Submit button?
View Replies
View Related
what I want to do is have a link to a website that automatically fills in a button and presses submit.
<form method="post" action="blahblah.php">
<input type="radio" checked name="option_id" value="999">
<input type="submit" value="Vote" class="input" name="submit">
Here, the radio button is already checked, but how do I submit
directly to the blahblah.php?
Can I just have it so that the submit button is depressed automatically when
you press a link to the page? i.e. click here! will go to the page with the
form, then automatically submit the data?
View Replies
View Related
I have a submit button - I would like it to submit and then I would go to the next page when the submit button is pressed.
View Replies
View Related
I am creating a page in ASP (I recently taught myself ASP so I'm no expert by any stretch of the imagination).
This page is going to put data in a database, which then an adminstrator needs to approve, and then the data will be moved to a different DB allowing it to be viewed on the web). The issue is that in all reality someone may post data once a month at most. Since I am currently the one who needs to approve the data, and I am not one who will remember to check if any data is in the DB on a regular basis, I would like to know if there is a way I can have the form send me an email everytime data is inputted in the database, this way I know I need to review and approve the data.
View Replies
View Related
I have an intermediate page that takes a querystring, does a query on a
database and writes out hidden values for each returned record. This design
layout is necessary for a variety of reasons and not subject to change.
I need the form to never be seen, essentially it needs to write out the
hidden values and immediately post to another form when it's done. I have
everything accomplished but the posting. Is there a technique to post the
form via code as opposed to a submit button or something of that nature?
View Replies
View Related
i am having problem with my submit function. When i refresh my page or select an option from the drop down list it is submiting the values into the database where it should submit when i click the submit values. Another problem is tat wad ever values i submit it is appearing with comma at the beginning of the value in the database.
View Replies
View Related
Can I put a validation on the standard submit button on the form? I want the user to necessarily select a radio button on the page? Or should I be using a notmal button with an on_Click event? In that case how will I push submit?
View Replies
View Related
I know I have done this but my mind is fried. I have a dynamic dropdown in
a form. I need to pull both the dynamic dropdown's ID and name listed in
the dropdown. Need a little help with grey matter tonight.
View Replies
View Related
I have a question about using a image as a submit button. Basically I have:
<INPUT="image" SRC="c:whateverwhateverutton.jpg" NAME="Login">
Now I have two different buttons in one form. I trying to figure out how to get the page to know what button was pushed, and then do a set of actions. Such as:
If button1 is pushed then
blah
end if
if button2 is pushed then
blah
end if
Thats the basic pseudo code for what Im trying to do. Keep in mind this is a image button.
View Replies
View Related
I have a page with image, image has some image map, I want to submit
form when user mouseover that image map, my code is like this:
<img src="Images/floor4.jpg"usemap="#planetmap" id="IMG1">
<map id="planetmap" name="planetmap">
<area id=f4 shape="circle" coords="65, 93, 11" alt="CF4588"
onmouseover=overf4()>
And I write sub overf4() in vb script
sub overf4()
document.frmSelect.submit()
end sub
when mouse over that point form submit several times until mouse in on
the point I want to sumbit iust one time
View Replies
View Related
i have struck in trouble in some development part, the thing is i am developing one site which collects some information in that i want that when some one fills form and click on submit button then my thanks for submitting mail Autoresponder should response. I want a perfect code for that.
View Replies
View Related
Normally I would do something like
if request.form("submitbutton.x") <"" then
....
end if
But I found a problem when the browser uses the 'alt text' instead of
the image (when the image is not found, or if the browser is not
displaying graphics, etc. How do you detect that? or should I?
View Replies
View Related
I am working with two db's (i.e John and John1) I have a form that when submitted the information goes to the (i.e) Doe table. This table (Doe) is located in both the John db and John1 db, I need to add the functionality so that when the submit button is selected both db's are updated.
View Replies
View Related
I figured out that it is a default feature that if you are in an input box and hit the enter button it will cause the form to sort of 'submit'. I have a page where the form action is the actual page but it does all its variable assigning and such inside of an if then statement.
If Request.Form("submit")<> Then
and at the end of the if then I have a response.redirect to throw the results of my variables in the llink.
So what happens is when I hit the enter button it almost looks like the page is refreshing since the form action is the form itself. And the form doesnt even get into the If then statement. Anyone have any suggestions or direction as to what the easiest way I can do this is?
View Replies
View Related