Current location: Hot Scripts Forums » Programming Languages » PHP » pass array in querystring


pass array in querystring

Reply
  #1 (permalink)  
Old 04-16-07, 08:50 AM
aprogrammer aprogrammer is offline
Newbie Coder
 
Join Date: Apr 2005
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
pass array in querystring

i have a array taken form checkboxes so
schools is an array taken from checkbox

now if this was not multiple to pass it in the querystring i would do
$schools=$_REQUEST['schools'];
and in the querystring
&schools=$schools

how can i pass the whole array in the querystring? Is this possible?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-16-07, 09:05 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
Like this:

?foo[bar]=abc&foo[bar1]=def&foo[bar2]=ghi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Skips array on second pass patter PHP 0 09-21-06 02:28 PM
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' Dr. Forensics PHP 3 07-15-06 04:54 PM
how to pass php array to javascript jaishalg PHP 2 12-23-05 04:28 AM
Serializing a set of arrays dannyallen PHP 2 10-11-04 04:04 AM
linking to iframe not working :( j0d JavaScript 5 01-19-04 09:14 PM


All times are GMT -5. The time now is 10:20 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.