0

i am building an web store. the store have 4 steps form like so: ($items['soda/checkout/1'] , $items['soda/checkout/2'] , $items['soda/checkout/3'] , $items['soda/checkout/4']) each step can be access only if the former steps have been submited.

I want to restrict access so that users cant jump from 1st stage to 3rh 4th...

how can i do it?

1 Answer 1

1

Although, you can use value of $_SERVER['HTTP_REFERER'] to determine the referrer of current page. But it is not reliable.

Instead, you can store this information in cookies & check the current stage of user & take action accordingly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.