4

How can I create a variable that is pulled from a URL like the one below?

eg: http://www.example.com/page.php?Item_ID=774&score=42

Need to pull the number "42" from the url and placed into a form which is then emailed by the user.

1 Answer 1

10

Use Mo' Variables. It will give you access to GET variables like this {get:your_key} (in your case {get:score}).

Mo' Variables has many other uses, as well!

2
  • @alex Is using this plugin the only way to achieve this?
    – Andrew
    Jan 27, 2015 at 23:32
  • If we're talking templates... your alternative options are 1) possibly another plugin with similar function, or 2) make your own plugin. 3) you could enable PHP in the template and use some PHP, but you are better off making a simple plugin instead or just using Mo' Variables.
    – Alex Kendrick
    Jan 28, 2015 at 5:30

Your Answer

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

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