Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8227265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:04:08+00:00 2026-06-07T16:04:08+00:00

I need to pass a parameter to a new page (without query strings), because

  • 0

I need to pass a parameter to a new page (without query strings), because I would like to redirect back to the module and query string of the current page.

So I can get from

  1. showdown/index?id=35 –click—> showdown/vote?id=1
  2. showdown/vote?id=1 –redirect–> showdown/index?id=35

The vote action is not seen.

(The redirect method doesn’t work as it redirects to the plain index.php homepage url only and not keeping the module/action intact, and I cannot find a helper in Magento for creating hyperlinks.)

Does Magneto have a link helper for this?

Example of stuff I want: <a href="<?php echo Mage::Helper->Link->($url, $array); ?> then $array or whatever variables gets sent to the controller (page I linked to).

Can I use a POST style hyperlink? (I can in Symfony/Yii/Rails/Ramaze frameworks. Why not Zend?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:04:09+00:00Added an answer on June 7, 2026 at 4:04 pm

    Link clicks will not result in a POST request without JavaScript.

    Magento Url helper has the syntax

    Mage::getUrl('module/controllerfile/action',array('id',1))

    which would result in a lookup of the frontName for module and would give you for example

    http://site.com/module/controllerfile/action/id/1/

    which you could then access with Mage::app()->getRequest()->getParam('id').

    If you have multiple URLs involved (like a form post), you can also redirect the user within the controller by using

    $this->_redirect('module/controllerfile/action', array('id',1))

    You can also create a query string with

    $this->_redirect('module/controllerfile/action', array('_query',array('param1'=>'val','param2'=>'val'))).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to pass a list of strings as parameter to a console application
I need to pass a parameter from an EditText and when I click the
This question is regarding getopt function in php. I need to pass two parameter
I need to pass an extra parameter :mobilejs => true from jQuery to a
I need to pass a url string from the view to the controller, a
I'm trying to pass some parameters (a couple of strings) from a page to
Hi all i need to pass parameter from controller to client and process it
I need to pass an array from JavaScript to a page method in C#.
I would like to create a compiled query which uses reusable where predicates. An
I've created a custom field type in Joomla and need to pass parameters to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.