Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Activating a CGI script ?

    Hi,

    Um, I have a form which has a submi button, when that button is pushed, a javascript is run which basically validates the form. What I want to know is how do I ativate the cgi script behind the form after the validation check has been completed.

    Any ideas ??

    Thanks

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    there's a few ways. One way would be to change your submit button to a regular button

    <input type=button onClick="dovalidation()">

    Use the onClick to activate your validation routine. Then inside your validation routine if everything checks out you can use javascript to submit the form like so:

    document.formname.submit();
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

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