IT Community - Software Programming, Web Development and Technical Support

How to get values from querystring?

This is a discussion on How to get values from querystring? within the Ruby forums, part of the Web Development category; can anybody tell me how to get the values from querystring...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Ruby

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-12-2007, 11:17 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Question How to get values from querystring?

can anybody tell me how to get the values from querystring
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-22-2007, 02:25 AM
mobilegeek mobilegeek is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 205
mobilegeek is on a distinguished road
Smile Re: How to get values from querystring?

Hi vinoth,

Here is the syntax.

Code:
params[:param_name]
So say for example you're using pagination and you want the page_number param

list?page_number=1:

Code:
params[:page_number]params[:page_number]
that's it....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-26-2007, 05:40 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: How to get values from querystring?

thanx mobile for ur quick reply,

but if i have suppose 7 parameters in query string and i want to access the value for all 7 parameters in one go,

how can i do that..
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How will get distinct values from datatable Mramesh C# Programming 5 02-14-2008 07:51 PM
How to getting values from cookies to set widgets? GDevakii HTML, CSS and Javascript Coding Techniques 1 10-30-2007 01:29 AM
How do I retrieve the values from the URL? Pvinothkumar HTML, CSS and Javascript Coding Techniques 1 09-13-2007 05:30 AM
How to get URL without querystring?in asp.net kingmaker ASP and ASP.NET Programming 1 07-27-2007 03:58 AM
Comparing Values pranky PHP Programming 0 02-24-2007 12:06 AM


All times are GMT -7. The time now is 11:59 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0