ksmatthews Posted February 25, 2008 Share Posted February 25, 2008 HI THere, I would like to call a script by appending an array of numbers. For example .. $myarray[] = (1,2,3,4,5); myfile.php?name=$myarray I would then like to read and use the contents of that array within myfile.php using $_GET['name']. I do not seem to be able to do this ... What am I doing wrong ? Steven M Link to comment https://forums.phpfreaks.com/topic/92872-appending-arrays-to-a-script/ Share on other sites More sharing options...
priti Posted February 25, 2008 Share Posted February 25, 2008 i tried something like this http://localhost/test/test.php?name=1,2,3,4,5 adn in php file i did print_r($_GET); and output was Array ( [name] => 1,2,3,4,5 ) try like this and let us know your script's output. Link to comment https://forums.phpfreaks.com/topic/92872-appending-arrays-to-a-script/#findComment-475728 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.