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!
OK, so i have an array that has 7 items. I am trying to pass this array using POST. I do a size of before and it shows 7 items. After I evalute the variable recieved from the POST it shows up as 1 array item and nothing else.
But You Can Do This
==============
First Pass All The Items In a Single Line Separated By a Comma Or Something else and Post That Total Line
And Then Simply Explode That Line To Make An Array
if ((isset($_POST['link'])) && (is_array($_POST['link'])) {
foreach ($_POST['link'] as $key=>$value) {
echo "Index {$key} has a value of '{$value}'<br />";
}
}
Welcome, hopefully you can see that you can also build the initial form using either a for loop, or a foreach depending on circumstances. For loop example below
Its a simple question of priorities. For example: if there book with a story in it and you want to read the story, first you must be able to read and understand the language in which the book is written.
Last edited by bokehman on Wed Dec 13, 2006 9:53 am, edited 1 time in total.
Its a simple question of priorities. For example: if there book with a story in it and you want to read the story, first you must be able to read and understand the language in which the book is written.
Well So You Mean php Is Written On HTML
Please Dont Missguide Me
Its a simple question of priorities. For example: if there book with a story in it and you want to read the story, first you must be able to read and understand the language in which the book is written.
Well So You Mean php Is Written On HTML
Please Dont Missguide Me
I thought it was based off of C/C++.
Now that we got that cleared up, lets spread the word.