Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Using hyperlinks to pass data


Go to End


3 Posts   2041 Views

Avatar
r0ar

Community Member, 13 Posts

10 August 2008 at 7:40pm

Hi,
So I have a hyperlink to a different page.
Now I want to pass that page data when that hyperlink is clicked.

I was able to do this using a button with customise and renderwith.

Is it possible to do this with a hyperlink?

Avatar
Willr

Forum Moderator, 5523 Posts

10 August 2008 at 8:35pm

well at the very basic level you could use get variables eg write your hyperlink as www.site.com/page?somevar=avariable then in your PHP code file you can access it via $_GET['somevar'];

Avatar
r0ar

Community Member, 13 Posts

10 August 2008 at 8:44pm

thanks!

I was wondering if that would work under ss.

thank you!