We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

How to POST BACK?!? Pls help...

Last post 05-26-2008 7:56 PM by AlShaitan. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-16-2008 3:38 AM

    • jnjnewbie
    • Not Ranked
    • Joined on 04-16-2008
    • United States
    • New Member
    • Points 15

    How to POST BACK?!? Pls help...

    I created a webform which requires some verification on the inputted data. I had the verification process in a separated ASP page. My problem is, i need to post back to the original page the result of the verification. Can anyone advise me on how to go about that?

    Ex:

    form.htm - this contains the form. clicking a button in this form will call verify.asp

    verify.asp - contains the code doing the verification. the result of the verification i want to post back to the form.htm

    • Post Points: 15
  • 05-02-2008 3:16 PM In reply to

    • HelpTechIT
    • Not Ranked
    • Joined on 05-02-2008
    • United Kingdom
    • New Member
    • Points 60

    Re: How to POST BACK?!? Pls help...

    Hi there

     I dont know if you have though of this already but you can use session variables to allow the website to keep hold of the information stored within them accross pages. so you can recall the variable in the next page. maybe this will help

    <%

    if request.form("register") = "Submit" then

     session("msg") = "hello "&request.form("Name")

    response.redirect("register.asp")

    end if 

    %>

    Then on you next page you can just have <%=session("msg")%> within the HTML wherever you want it to write it. hope the above example is what you are looking for.

     Dan 

    • Post Points: 5
  • 05-26-2008 7:56 PM In reply to

    • AlShaitan
    • Not Ranked
    • Joined on 05-26-2008
    • Brazil
    • New Member
    • Points 30

    Re: How to POST BACK?!? Pls help...

    Use javascript on a iframed verify.asp to transfer data to form.htm, as in:

     <%

    Dim Result

    Result = ServerValidationProcedure(Request("Username"), Request("Password"))

    %>

    <script>
    parent.MessageDiv.innerHTML = <%=Result%>
    </script>

     Hope it helps.

    - Shai

    • Post Points: 5
Page 1 of 1 (3 items)