Passing Data through pages? ack

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Passing Data through pages? ack

Post 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!
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post 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).
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post 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 :)
User avatar
RandomEngy
Forum Contributor
Posts: 173
Joined: Wed Jun 26, 2002 3:24 pm
Contact:

Post by RandomEngy »

Using session vars sounds perfect for this situation.
User avatar
rax369
Forum Commoner
Posts: 56
Joined: Sun Oct 06, 2002 8:50 pm

Post 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.
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

property

Post by AVATAr »

There's a prop in the field like

Code: Select all

visible = "hidden"
or something like that

hope it helps
Post Reply