sending data between pages

Discussion in 'ASP General' started by bender, Sep 10, 2003.

  1. bender

    bender Guest

    How can I through asp figure out if a page is opend through a regular link
    or from form post method like this :

    <form action="something.asp" method=post>
    //code...
    <input type="submit" value="Ok">
    </form>

    Thanks.
    bender, Sep 10, 2003
    #1
    1. Advertising

  2. bender

    HarryD Guest

    you might check the referer.
    Request.ServerVariables("HTTP_REFERER")

    "bender online.no>" <laasunde@<remove> wrote in message
    news:#...
    > How can I through asp figure out if a page is opend through a regular link
    > or from form post method like this :
    >
    > <form action="something.asp" method=post>
    > file://code...
    > <input type="submit" value="Ok">
    > </form>
    >
    > Thanks.
    >
    >
    >
    HarryD, Sep 10, 2003
    #2
    1. Advertising

  3. bender

    Randy Rahbar Guest

    > How can I through asp figure out if a page is opend through a regular link
    > or from form post method like this :
    >
    > <form action="something.asp" method=post>
    > //code...
    > <input type="submit" value="Ok">
    > </form>


    Something like this might work (if you give your submit input tag a
    name=submit)...

    if request.form("submit").count > 0 then
    'it was submitted via a form post
    else
    'it was not
    end if
    Randy Rahbar, Sep 10, 2003
    #3
  4. bender

    bender Guest

    Thank you :)

    "Randy Rahbar" <rvrahbarAThotmail.com> wrote in message
    news:...
    > > How can I through asp figure out if a page is opend through a regular

    link
    > > or from form post method like this :
    > >
    > > <form action="something.asp" method=post>
    > > //code...
    > > <input type="submit" value="Ok">
    > > </form>

    >
    > Something like this might work (if you give your submit input tag a
    > name=submit)...
    >
    > if request.form("submit").count > 0 then
    > 'it was submitted via a form post
    > else
    > 'it was not
    > end if
    >
    >
    bender, Sep 10, 2003
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kairi Zikpin

    Re: Pass data between pages

    Kairi Zikpin, Jul 1, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    400
    Kairi Zikpin
    Jul 1, 2003
  2. Patrice Scribe

    Re: Pass data between pages

    Patrice Scribe, Jul 1, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    363
    Patrice Scribe
    Jul 1, 2003
  3. Ugur Ekinci

    sending data between two pages

    Ugur Ekinci, Oct 22, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    493
    S. Justin Gengo
    Oct 22, 2005
  4. Replies:
    0
    Views:
    1,330
  5. Luke
    Replies:
    2
    Views:
    4,675
    Nigel Wade
    Mar 15, 2007
Loading...

Share This Page