Hello, so my colleague and I have been trying to redirect to a different page, when you click on a button, but whenever we do that it pops up this message.
Page Not Found
- The page you are trying to view does not exist or you do not have permissions to view it
Any help would be appreciated!!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
- Moksh@moksh2476

Moksh - 0 likes
<button id="button123" style="position: relative; left: 10px;"> <?php include 'main.html';
elgg_register_action("button123", './step1.php', "public");
?>
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 1 like
You must log in to post replies.How are you trying to do it?
Code snippet please.
BTW, there's a plugin for redirects on your site
Sure, attached to this comment will be the code snippet that I am trying and the error I get.
main.html:
content.php:
You cannot use elgg_register_action as it's.
Learn how to register action in Elgg.
So you should get a link to action that you can use in your code even if you use JS for this.
Learn how to use an action in JS.