Forum Moderators: coopster

Message Too Old, No Replies

array, php and html

         

Flolondon

6:37 pm on Mar 6, 2006 (gmt 0)

10+ Year Member



I was wondering whether someone could give me an example of how to use an associative or numerical php array along with the userend...i.e. html.. so that i can see the connection between html and arrays... Thanks..

inveni0

6:43 pm on Mar 6, 2006 (gmt 0)

10+ Year Member



If you're simply wanting to view the contents of an array, you can do so using:

print_r($ArrayVar);

If you're wanting to see an array on a page titled *.html, its impossible (as far as I know). The page must end *.php in order for the PHP code to be translated into functional code.

dreamcatcher

8:00 pm on Mar 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Flolondon, maybe if you gave up some idea of what you are trying to accomplish, we can help you better?

dc