Help with dynamic javascript/PHP array

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!

Moderator: General Moderators

Post Reply
Kr4zy
Forum Newbie
Posts: 1
Joined: Sun Mar 06, 2005 8:19 pm

Help with dynamic javascript/PHP array

Post by Kr4zy »

Here's my deal: I'm making a website to keep score at a robotics competition. Because I don't expect there will actually be a strong wireless internet connection right at fieldside, I need a page that will act all client side so the person can keep score, then go back into the internet zone and update a database. What I have so far is here:
http://arrow-labs.com/firstScore/main.html.
What I'm having trouble figuring out is how to get the information from the 2 javascript arrays (penList and tetraList) into a PHP array on the next page to move into a database. I know I could do either query strings or make a ton of hidden form fields, but isn't there a better way?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

not really.. You could make a cookie (but that depends on the machine having Javascript allowed to set a cookie.)
Post Reply