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!
I tried to create array and pass it thru url but I am not sure what I did wrong. I am getting 'link[1]' instead of page1.html in the form field. Here is the sample of my code. Can someone please take a look and help me out?
What I am trying to accomplish is to pass the value 'page1.html' to a form thru url. The url is very long and therefore I do not want to include it in the link itself.
or you can serialize() the array, and unserialize() it to get the array back. You should be aware of the limitations in some browsers of the maximum length of the url. Therefore, it's better to POST the data.