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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1763 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!