Page 1 of 1

how to get post and get array value

Posted: Mon Apr 17, 2006 7:05 am
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?

Posted: Mon Apr 17, 2006 7:09 am
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>';