Results 1 to 2 of 2

Thread: ASP Help

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Posts
    32

    Question ASP Help

    I have a page called main.asp

    Its just a form where i want the user to enter in some information, and than click the submit button. When they click the submit button, i want the asp code on main.asp to be executed. My problem is this:

    When i load up main.asp .. the asp code gets executed automatically. What do i need to do in order to just have the asp code to be executed only when the submit button is clicked.

    Thanks in advance

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    just do,

    let say you have a hidden text box called isSubmit

    <input type="hidden" name="isSubmit" value="yes">

    do


    if request("isSubmit") = "" then
    firstTime
    else
    the form has been submitted
    end if

Posting Permissions

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



Click Here to Expand Forum to Full Width