Controlling a stepper motor via ethernet

I am trying to control the clockwise and counter clockwise or 6 unipolar motors via the Ethernet over Arduino. I have my code all written and works great solo as a loop. However when I create my ethernet based code and creat an html page within Arduino and add a button to controll the direction of the stepper motors, they no longer do full rotation. I believe its do to there is no direct loop alowing the process to complete. I need help

Thanks Paul

pfowler1974@gmail.com or 207-215-1889