There is any alternative of header function, as all we know that we cant use echo or sent output. I have lots of echo statements and I am passing query string also. I want to preserve that that query url.

There is any option to do redirect without using header() function.

I think that javascript provides another way:

<script language="javascript" type="text/javascript">window.location = "index.php?err=3";</script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.