Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    the windy city
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    agree to terms before proceeding

    i am not posting this in asp or php forum because i will be using miva script to write it, so all i need is a general advice on how to structure the script.
    though i will be using it for a slightly different purpose, the idea is identical to, say, this board's registration. you can only get to the registration page after clicking "accept" on the terms and conditions page. and if you're trying to access the registration page directly you get redirected to the terms page.
    i looked @ the source code for this board's terms page and it's got a bunch of hidden fields in it that i am not sure what they are needed for.
    so could anybody tell me how a script of this kind should flow?
    thanks
    Goals are dreams with deadlines
    -------------------------------------
    Nimlok Trade Show Display Booth and Exhibit
    http://www.orbusinc.com

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,084
    Thanks
    11
    Thanked 100 Times in 98 Posts
    lol from what I can make of this wonderful language..... (it does not appear to be able to set HTTP headers so using a meta-refresh here)

    at the end of you agreement page ....make a form with

    ...........
    <fom action="receiving.htm" method="POST">
    <input type="hidden" name="agree" value="">
    <input type="submit" name="submit" value="nah">
    </form>

    <fom action="receiving.htm" method="POST">
    <input type="hidden" name="agree" value="1">
    <input type="submit" name="submit" value="I agree">
    </form>


    then on the receiving page....


    <MvIF EXPR = "{ agree EQ '1'}">
    all is well do whatever you want to do here
    blah blah
    <MvELSE>
    <meta http-equiv="Refresh" value='0;agreement.htm'>
    </MvIF>


    Now not being in a position to test this I am assuming that the HTTP_POST variable `agree` is readily available, you may have to initialise them if so I dont know how
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    the windy city
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts
    firepages,
    is there ANYTHING you don't know???
    miva is not all that popular at all and your comment about "this wonderful language" is so true... i wished we used something else, but my boss is not changing his mind

    it worked like a charm (and my variable was available too)!
    thanks so much!!!
    Goals are dreams with deadlines
    -------------------------------------
    Nimlok Trade Show Display Booth and Exhibit
    http://www.orbusinc.com


  •  

    Posting Permissions

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