Originally posted by Nickosssss
well yes i know that but the issue is that i have
radio button in the file and the user need to be directed to the right php file according to the choice....
is there any other way to redirect to other php files where there is a choice that needs to be made
OK, the problem here is you're kinda going about it the wrong way. If you want to go from one page to the next and take data with you, you need to do it by submitting a form, not using header (location) type stuff. Otherwise you're just doing "get" method instead of "post", which, I assume, is what you want.
Get method allows to user to bookmark a page to return later. For a page with data that's a live edit, this is a bad thing.
What you want to do is either put your processing logic in one page and make the decision how to branch there, or put an intermediate page with a javascript onload=document.formname.submit() in it, with hidden variables stuck in it to get to the next page. A pain.
Is there a solid reason why you can't just abstract out the logic to process and include the proper logic file based on the radio button later?