Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Using hyperlinks to pass data

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

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

Page: 1
Go to End
Author Topic: 1451 Views
  • r0ar
    Avatar
    Community Member
    13 Posts

    Using hyperlinks to pass data Link to this post

    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?

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Using hyperlinks to pass data Link to this post

    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'];

  • r0ar
    Avatar
    Community Member
    13 Posts

    Re: Using hyperlinks to pass data Link to this post

    thanks!

    I was wondering if that would work under ss.

    thank you!

    1451 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.