...

View Full Version : agree to terms before proceeding



valeria_vi
08-28-2002, 05:18 PM
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

firepages
08-28-2002, 07:16 PM
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 :)

valeria_vi
08-28-2002, 08:12 PM
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 :rolleyes:

it worked like a charm (and my variable was available too)!
thanks so much!!!
:thumbsup: :thumbsup: :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum