473,386 Members | 2,078 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,386 software developers and data experts.

Help with asp server side validation and browser back button issue

Hi,

I am having a signup.asp page where a user enters his details and clicks on subscribe button. I am doing server side validation to check if the user already exists in the database and then allowing him to subscribe using VB script. This subscription will send an email and then redirect to a thank you page once the user is validated. Now my problem is when I hit the browser back button on thankyou.asp page it just flashes the signup.asp page and brings back to the thank you page and in this process another email is sent. Is there any way that I can view the signup.asp page by clicking the browser back button on the thank you page.

Thanks.
Jul 17 '07 #1
7 2475
danp129
323 Expert 256MB
Hi,

I am having a signup.asp page where a user enters his details and clicks on subscribe button. I am doing server side validation to check if the user already exists in the database and then allowing him to subscribe using VB script. This subscription will send an email and then redirect to a thank you page once the user is validated. Now my problem is when I hit the browser back button on thankyou.asp page it just flashes the signup.asp page and brings back to the thank you page and in this process another email is sent. Is there any way that I can view the signup.asp page by clicking the browser back button on the thank you page.

Thanks.
Check if they user is already subscribed before e-mailing and redirecting.
Jul 17 '07 #2
Check if they user is already subscribed before e-mailing and redirecting.
This problem occurs even if the user is subscribing for the first time.
Jul 17 '07 #3
danp129
323 Expert 256MB
This problem occurs even if the user is subscribing for the first time.
If they hit back in the browser and a new e-mail gets sent then there is not code in place to check if they're already signed up before sending the e-mail and redirecting them again.
Jul 17 '07 #4
If they hit back in the browser and a new e-mail gets sent then there is not code in place to check if they're already signed up before sending the e-mail and redirecting them again.
They can subcribe even though they already signed up. There are 3 types of news letters and user can choose any type just by selecting using the check box and for every type he selected he gets a different email. There is no necessity to confirm if he is already signed up or not.
Jul 17 '07 #5
Try this http://www.4guysfromrolla.com/webtech/111500-1.shtml
Nope i read this article and tried to implement something similar but it didnt work in my case. Also i dont have access to thank you page. I need to set something on my signup page only so that it dosent disappear after flasing.
Jul 17 '07 #7
danp129
323 Expert 256MB
post your code
..................................
Jul 17 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
3
by: Navin | last post by:
Hello friends... On a single asp.net web page i have a single server-side form that contains a couple of user-controls. Each user control has its own functionality and contains server-side textbox...
4
by: usl2222 | last post by:
Hi folks, I appreciate any assistance in the following problem: I have a form with a bunch of dynamic controls on it. All the controls are dynamically generated on a server, including all...
3
by: Quentin Huo | last post by:
Hi: When I tried the following code, I got an error: if I clicked "Click me" button more than one time, and than click "back" button in the IE browser Toolbar, I will get an error: "The page...
9
by: AFN | last post by:
I was just dropped into someone else's code (isn't that always so fun?). I can't figure out why a custom validation control's server event function is executing. There is nothing (that I see)...
3
by: A_Republican | last post by:
I have a web application built in .NET Framework 1.1. The application has alot of content so I need to avoid postback at all costs. The application has a javascript file which handles disabling...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
53
by: souporpower | last post by:
Hello All I am trying to activate a link using Jquery. Here is my code; <html> <head> <script type="text/javascript" src="../../resources/js/ jquery-1.2.6.js"</script> <script...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.