IT Community - Software Programming, Web Development and Technical Support

How to Post and get the Multidimension Array?

This is a discussion on How to Post and get the Multidimension Array? within the PHP Programming forums, part of the Web Development category; If it possible to post the Multidimension array in PHP example if have array like $aList = Array ([P_GIFTID] => Array( [...


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

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-11-2007, 04:19 AM
varghese varghese is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 93
varghese is on a distinguished road
Default How to Post and get the Multidimension Array?

If it possible to post the Multidimension array in PHP

example

if have array like

$aList = Array ([P_GIFTID] => Array( [0] => 7 [1] => 8) [P_GIFTCATID] => Array ( [0] => 0 [1] => 0 ) [P_GIFTNAME] => Array ( [0] => Posters [1] => Home Decor) [P_GIFTMAPID] => Array ( [0] => posters.jpg [1] => 94_color_pencil.jpg))

<input type = "hidden" name = "hidArray>

after posting the form can i get $_REQUEST["hidArray"]?
it is possible?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-11-2007, 06:06 AM
Senthilkumar Senthilkumar is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 93
Senthilkumar is on a distinguished road
Thumbs up Re: How to Post and get the Multidimension Array?

Hi

Use the hidden variable array value assignment like
<input type = "hidden" name="hidArray" value="<?= print_r($fruits)?>">
then you will get the multidimensional array value through the hiddden variable name.

Thanks
Senthil Kumar S
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
Build GET/POST query based on associated array Gopisoft PHP Programming 1 11-06-2007 07:29 AM
How to get the Post values without using Server Variables? senraj PHP Programming 6 10-17-2007 11:31 PM
What’s the difference between the System.Array.CopyTo() and System.Array.Clone() ? Archer C# Programming 2 08-25-2007 03:00 AM
Post subject: php_errormsg: How turned it on? montyauto PHP Programming 2 07-13-2007 08:18 AM
how to post multiple select value through javascript saravanan HTML, CSS and Javascript Coding Techniques 1 07-13-2007 04:53 AM


All times are GMT -7. The time now is 02:40 AM.


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

SEO by vBSEO 3.0.0