SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Afrika
    Join Date
    Jul 2004
    Location
    Nigeria
    Posts
    1,737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    two functions in the same form

    hello,
    i have two functions running on form validation

    Code:
    onsubmit="this.elements['submit'].disabled = true;" onSubmit="return Validate();"
    Code:
    <form action="confirm_send.asp" method="post" name= "sendsms_1newday" id="sendsms_1newday"onsubmit="this.elements['submit'].disabled = true;" onSubmit="return Validate();"></p>
    how do i implement both in the same form ?
    Afrika

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    onsubmit="this.elements['submit'].disabled = true; return Validate();"

    You sure you want to do that? How is the user going to be able to submit the form after validation? After they change their input to the correct format, they won't be able to hit submit to send the form.


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
  •