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!
I still don't understand you. Since you haven't actually posted your full script, I'm presuming the same script shows a HTML form, and processes the data. In this situation you would always set the form action to the same page you are submitting from. You can do it like you have done it, or hard code it. Either way it's the same.
If you script isn't working properly and you are actually wanting the form to be submitted to itself then the form tag isn't going to be the cause of your error.
That is what i thought!!! Thanks a bunch the code is screwey, a friend wrote it and it worked on his site but i guess i have to write my own for mine. oh well!
Looks to me like your friend codes with register_globals set to ON, which is bad, bad, bad. Luckily, your server appears to have it disabled. Try changing the instances of your form variables, such as $submit to $_POST['submit'].. and it should work.