Page 1 of 1

Passing Data through pages? ack

Posted: Thu Oct 24, 2002 2:48 pm
by JPlush76
I have 3 checkout pages for an ecom site

one to display the item info/shipping options and place to enter their cc card...

from that page they go to a confirm page that gives them all the shipping and taxing tots

when they click submit the enter is ordered

right now I'm using hidden fields, but that doesn't seem the best way to pass data. Anyone know a better way? Would it be bad to make those hidden fields session variables instead??

thanks!

Posted: Thu Oct 24, 2002 3:18 pm
by qads
i can't think of any thing that would make useing sessions for your problem a bad thing, it is better then useing hidden fields or passing the data around in the address bar(GET).

Posted: Thu Oct 24, 2002 3:20 pm
by JPlush76
I was just thinking of server overhead, but I think the security risk of passing info through POST in hidden fields everytime is too great.

I think I'll start coding them as session vars unless someone has another idea :)

Posted: Thu Oct 24, 2002 9:13 pm
by RandomEngy
Using session vars sounds perfect for this situation.

Posted: Thu Oct 24, 2002 11:59 pm
by rax369
excuse my ignorance guys, what for and how u should use those hidden fields in forms.

I use dreamweaver mx to learn php programin, 'n I have seen those hidden fields in the form elements, I have always wonder what for and how to use those.

thx for ur answers.

property

Posted: Fri Oct 25, 2002 6:44 am
by AVATAr
There's a prop in the field like

Code: Select all

visible = "hidden"
or something like that

hope it helps