From: "Ash.." <[EMAIL PROTECTED]> > Thanks John (Holmes) for the clue on form-param-reading. Simple one, but > shows I got a lot of basics to learn yet.
You're welcome. :) > Here I have another doubt I cant resist asking help for. > > What are the various ways of forwarding to another page. I tried header().. > based on an example I found it in, but it doesnt work if I have done an > include before calling the header. What are the other alternatives of > forwarding. (I tried searching the PHP manual, but didnt find any clue. Nor > did I come across any learn material which seemed to deal with this.) header() is the only way you're going to redirect with PHP. Alternatives include a JavaScript redirection or a meta-refresh header. Think of it this way, though. header() will work so long as there is no _output_ to the browser. You can include files, but there just can't be any _output_. Now, if you really need to redirect to another page, you should know this before any output. There's no reason to show the user anything and then redirect to another page. You may need to change the logic in your scripts, but that's how things are supposed to work. ---John Holmes... PS: Someone will undoubtedly mention output buffering, which is a hack to allow header() to work even if there is output. Just learn to do it the right way. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php