how to get post and get array value

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
varghese
Forum Newbie
Posts: 1
Joined: Mon Apr 17, 2006 6:41 am

how to get post and get array value

Post by varghese »

Can i able to post the array value and get that array value
for example in a paging i display only 10 records so i post the recordset and able to get the array value?It is Possible?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

I'm not sure what you mean?

If you have an array and you want to pass a value from it using GET then:

Code: Select all

$foo = array(1, 2, 4, 8, 16, 32);

echo '<a href="somescript.php?foo_value='.$foo[2].'">Click me</a>';
Post Reply