Form submit


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Form submit

  1. #1
    rkbnair Guest

    Form submit


    I have a client side script to submit a form(on clicking on a button)

    What check can I make in the server side whether the button is clicked?
    As shown in the code, there is no item called "item".
    How to handle the situation?

    thanks in advance.
    RK.


    <% If Not (IsEmpty(Request.Form("item"))) Then
    .......etc.
    End If
    %>


    function yourfunc(abc)
    {
    document.frmProfile.submit
    }


    <form NAME="frmProfile" action = "DataBrowseBAK2.asp" Method="post">
    ...Called the yourfunc function
    ...Etc.

    </Form>


  2. #2
    Sachin Guest

    Re: Form submit

    I am not getting what exactly are you asking???If the Form is submitted only
    by click of a Submit Button as you have written then why do you need to
    check whether Button is clicked or not??Cause Form will then be submitted
    only if user hits Submitted.
    If you are Sumbitting the Form to the same page & want to perform some
    server-side operations only if Form is submitted then you can check for any
    Form var value that cannot be Null if Form is submitted:

    IF Request.Form("someFormField") <> ""
    'FORM SUBMITTED
    END IF

    -Sachin
    "rkbnair" <rkannale@solus1.oceaneering.com> wrote in message
    news:3b6172ff$1@news.devx.com...
    >
    > I have a client side script to submit a form(on clicking on a button)
    >
    > What check can I make in the server side whether the button is clicked?
    > As shown in the code, there is no item called "item".
    > How to handle the situation?
    >
    > thanks in advance.
    > RK.
    >
    >
    > <% If Not (IsEmpty(Request.Form("item"))) Then
    > .......etc.
    > End If
    > %>
    >
    >
    > function yourfunc(abc)
    > {
    > document.frmProfile.submit
    > }
    >
    >
    > <form NAME="frmProfile" action = "DataBrowseBAK2.asp" Method="post">
    > ..Called the yourfunc function
    > ..Etc.
    >
    > </Form>
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center