ok thanks heaps
but im unclear about a few things, i dont quite get how the code above works, u set $pid = fork, making the if statement true, so the broswer redirects when the if statement gets executed, how will the else statement that sends the emails ever get executed?
i did run this code in my script and it appears to work, however im not 100% sure the fork was created, is there little test i can do to see if the fork was created and the fork actually send the emails and not the script itself that sent the emails?
thanks