0

Given this link:

localhost/abc/review?coupon=bskgnlsdgkj

How do I get the coupon value inside view?
I tried $_GET['coupon], but it didn't work.

5

1 Answer 1

0

You can use $this->input->get('coupon'); to get the value of url parameter. But, I suggest you to get the parameter value with $this->input->get('coupon',TRUE); to applying XSS Security directly.

For information can be found on this link.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.