Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Passing Parameters via hyperlink

by davido (Cardinal)
on Jun 27, 2013 at 00:01 UTC ( [id://1040870]=note: print w/replies, xml ) Need Help??


in reply to Passing Parameters via hyperlink

CGI.pm: FETCHING THE PARAMETER LIST AS A HASH.

Now why you would be using CGI.pm at all when you have Mojolicious at your finger tips, I have no idea. ;)


Dave

Replies are listed 'Best First'.
Re^2: Passing Parameters via hyperlink
by o2bwise (Scribe) on Jun 27, 2013 at 02:06 UTC

    C'mon Dave, help me out! ;-)

    Like I said, I am just learning. Other folks at work recommended I use Mojolicious with bootstrap.

    Tony

      Like I said, I am just learning. Other folks at work recommended I use Mojolicious with bootstrap.

      Well, you're already using Mojo, so  $mojoself->req->params->to_hash

        Hi,

        I found out parameters can be passed like the following:

        http://mojolicio.us/perldoc/Mojolicious/Controller#url_for

        my $url = $c->url_for('test', {name => 'sebastian'});

        If anyone knows how to fetch such a parameter in the template, I am all ears!

        Tony

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1040870]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-26 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found