Web Analytics Made Easy -
StatCounter Activating a CGI script ? - CodingForum

Announcement

Collapse
No announcement yet.

Activating a CGI script ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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
    CodingForum Supreme Overlord
    All Hail Spookster

    Comment

    Working...
    X