SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Enthusiast ptolemy's Avatar
    Join Date
    Feb 2002
    Location
    Geneva, Switzerland
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to confirm before submitting form data

    Is it possible to have a confirmation dialog come up when a user submits form data? And if the user cancels the data will not be sent.

    -ptolemy

  2. #2
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use the onsubmit event on the form to return the response of a confirm.

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  3. #3
    SitePoint Zealot
    Join Date
    Feb 2002
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check out the tutorial "Using JavaScript's confirm() Method to Control Form Submission" tutorial at the following site:

    http://webreference.com/programming/...irm/index.html

    Great tutorial, very easy to follow, doesn't get too technical.

    Good luck

    Ben

  4. #4
    SitePoint Enthusiast ptolemy's Avatar
    Join Date
    Feb 2002
    Location
    Geneva, Switzerland
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ben_m_gunn, thanks a lot! The tutorial was perfect. I can even use this with standard links which is great!

    Thanks again,
    -ptolemy


Bookmarks

Posting Permissions

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