Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7573047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:04:50+00:00 2026-05-30T16:04:50+00:00

Basically I have a page named dvds.asp with a form that goes to action=process.asp

  • 0

Basically I have a page named dvds.asp with a form that goes to action="process.asp". The process.asp script validates the Name, Surname and Email fields. I would like that if the email does not exist, a redirect will occur to the original page (dvd.asp) and also display a custom error.

The validation of the email field and redirect I know how to do. The only problem is how I am going to get the custom error value in the dvds.asp.

Any help please? 🙂

FYI:

I am using this code in process.asp to validate:

if txtEmail = "" then
Server.Transfer(Request.ServerVariables("HTTP_REFERER"))
else

Now the error I want to show on the dvds.asp page is: “Please fill in your email” .. How I can do that please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:04:51+00:00Added an answer on May 30, 2026 at 4:04 pm

    Hard to say without seeing any source, (For instance, how are you validating the email? What is this “Custom error value”?

    Assuming you have a function that validates the email and returns false if it fails and the matching error value is “1” then you could simply include this in your redirect:

    Dim EmailAddress
    EmailAddress = Request.Form("EmailAddress")
    If ValidateEmail(EmailAddress) = False Then
        Response.Redirect("dvd.asp?ErrorID=1")
    End If
    

    and on the Origional Source page, you could just display errors back to the user as follows:

       '#### Output errors
        If Trim(Request.QueryString("ErrorID")) <> "" Then
            Select Case Request.QueryString("ErrorID")
                Case "1" ' #### Email Error
                    Response.Write("<p><span style=""color: red"">Error: Invalid email address</span></p>")
                Case "2" ' #### Bad Name
                    Response.Write("<p><span style=""color: red"">Error: Invalid Name</span></p>")
                Case Else
                    Response.Write("<p><span style=""color: red"">Error: Unknown / Generic Error</span></p>")
            End Select
        End If
    

    One small suggestion by the way, its often preferable for pages such as this to post to the same page and include any email functionality you need from a class / SSI. That way you cold auto-populate the form again if an error occurred rather than expecting your end user to re-type the whole form if they get an error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I have a single page on my site that I want any php
I have a page that will basically be used to concatenate a bunch of
Basically, I have this webpage that is the header on any page you go
Basically i have a textbox on my .html page <input name=points type=text id=points value=/>
I basically have a page which shows a processing screen which has been flushed
I have a page which basically allows an admin user to create manager user
Basically, I have an iframe embedded in a page and the iframe has some
I basically have a unix process running and it is doing some heavy processing
I have a problem regarding to asp.net lifecylce hierarchy. Basically, I have one user
Sorry for this question. Basically I have a page where I have it automatically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.