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? Commented 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. Commented Jan 28, 2015 at 5:30

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.