Automation_Manual and web control

Hello,
I have made my home automation control via web.
My problem is :
Let's say there is someone at home who wants to switch a lamp on/off, and at the same time there is another person who can control it from the website.

How can I make this works without any problems occurring to the arduino and the state of the pin ?

Thank you

Just remove the manual control. Then, there really isn't any problem. A computer can only do one thing at a time, so whoever switches the light last ... wins. You may have a problem with coordination, in that the person wants to read and someone else keeps turning the light off, but that can be resolved with a phone call.

It's exactly the same problem two people with remote controls for the TV.

That is unless you did something really weird with the code that I don't know about.

Mich__1, I was wondering if you would mind sharing your code (sketch) I am new to programming. I took 1 c++/html class sophomore year of high school 04' so I'm fighting an uphill battle with my project. Are you running the web page on the arduino?

What software platform are you using? I'd be interested in how you're doing it. I started a thread to try and gather up other's experience on different platforms that's out there. Are you running the webpage off of a computer or directly off of the Arduino?

Here's my other post, if you have any relevant input, please share.
http://forum.arduino.cc/index.php?PHPSESSID=a7u1755e6rqa4n3o48fcjfjuk2&topic=225169.0

mich__1:
Hello,
I have made my home automation control via web.