Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-28-2002, 05:18 PM   PM User | #1
valeria_vi
New Coder

 
Join Date: Jun 2002
Location: the windy city
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
valeria_vi is an unknown quantity at this point
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
valeria_vi is offline   Reply With Quote
Old 08-28-2002, 07:16 PM   PM User | #2
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,911
Thanks: 5
Thanked 79 Times in 78 Posts
firepages will become famous soon enough
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)
firepages is online now   Reply With Quote
Old 08-28-2002, 08:12 PM   PM User | #3
valeria_vi
New Coder

 
Join Date: Jun 2002
Location: the windy city
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
valeria_vi is an unknown quantity at this point
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
valeria_vi is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:36 PM.


Advertisement
Log in to turn off these ads.