Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2001
    Location
    Canada
    Posts
    1,598

    Question Help? (HTML Forms)

    I am trying to get two DHTML scripts to work with my HTML form.

    I am using the "submit once" and "form validation" scripts which can be fount at Dynamic Drive.

    This is the current code I am using:

    <form action="cgi-bin/formmail.cgi" method="POST" onSubmit="submitonce(this)" onsubmit="return formCheck(this);">
    ... But it does not seem to work. Most likely because I have duplicated the onsubmit element?

    Does anyone know how I can work my way around this? I've been struggling with it for quite some time now..


  2. #2
    Not sure about this, but have you tried combining the two scripts into one script that first does the check, then submit(once) ?
    http://TotalHosting.biz
    Affordable Hosting & Bulk Reseller accounts.

  3. #3
    Join Date
    Aug 2001
    Location
    Canada
    Posts
    1,598
    I just tried it, doesn't work... javascript errors occur.

  4. #4
    Join Date
    May 2001
    Location
    Prince Edward Island
    Posts
    964
    try:

    <form name="formcheck" onsubmit="return formCheck(this);submitonce(this);" method=post action="cgi-bin/mailscripthere" >
    [url]I got nothing/url]

    For clarity's sake, don't use "<ip address of hostname>" use the ACTUAL 32-bit numeric IP address of the machine.

Posting Permissions

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