PDA

View Full Version : Simple variable sending



Skribble
June 13th, 2005, 08:56 PM
Hey guys. I wanted to add a little bit of user interactivity into my site. But it involves storing some variables. I could just use sharedObject but if the person deletes their cookies or doesnt support them then it wont work.


So my question is how would I send and recieve basic variables through PHP?


Thanks guys!


Brendan

bwh2
June 13th, 2005, 09:10 PM
you can do it through the address. either establish a session or just send the variables like index.php?variable=1. then globalize the variables so that you get them from the address.

Skribble
June 13th, 2005, 09:16 PM
sorry. I shouldve been more specific.

What im wanting to do is make my website customisable to each person who uses it. Like, their color scheme, style etc.

I was thinking of using sharedObject. But thought that PHP would be a better idea.

Your way just sends all the variables in the timeline doesnt it? I dont realy want to send them all. I guess ill need some kind of database so each individual user can save their own preferences.

The more I think about it the harder it seems haha. Well any helpful links on this kinda stuff would be good.

Thanks again.

bwh2
June 14th, 2005, 03:25 AM
sorry, i wasn't thinking in terms of flash, but rather just php. anyway, what i would do is use php and mysql with flash for this. what you're trying to do really isn't that difficult, and should be a good challenge (particularly if you're not very skilled in php or mysql).

i would read this tutorial (http://www.kirupa.com/forum/showthread.php?t=32478) first. then i would just get started on it (and ask a bunch of questions in the server-side forum).