Results 1 to 3 of 3

Thread: Redirect Problem

  1. #1
    Join Date
    Mar 2003
    Prairie Village, KS

    Question Redirect Problem

    I am having a redirect problem.

    I have JavaScript checking for empty required fields, that part works. Once the fields have been filled in, it's sending me an e-mail with the filled in fields, that part works also. It's the redirecting to another page that is the issue.

    The problem I'm having is if the form is missing a field, it notifies me but then once I click the "OK" button, it redirects me instead of leaving it on the same registration page.

    Here's the redirect code:
    <input type=hidden name="redirect" value "http://website.ThankYou.html">

    How do I make it stay on the registration page until all the necessary fields are satisfied? Should I be using something else, other than the redirect?

    Thank you for your help, in advance,

  2. #2
    Join Date
    Jan 2003
    um...wrong forum.

  3. #3
    Join Date
    Jan 2003
    Jersey Girl
    Hi Peggy...

    I don't really want to re-invent the wheel here, so this is what you should do (and I'm sure that you will be able to find your answer):

    Go the the Javascript forum here.
    Towards the bottom of the page is an area that says:
    Search this Forum:
    In the text box type:
    form validation

    That should get you about 75 threads (many of which probably address your need almost exactly).

    If - after looking through all of those threads - you are still having trouble...
    post your new question in that forum, and someone will be able to help you figure it out.

    Good luck.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center