Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i redirect ?

Status
Not open for further replies.

zakd

Programmer
Dec 11, 2001
21
0
0
GR
I want to know how can i redirect inside php code.

For example in ASP is: Response.Redirect "page1.asp?Id=34"
I want to do the same thing in php code.
Thanks
 
Hi

You can use:

header(location:page1.php?ID=34");

Cheers
Richard

 
You can use jscript for do it:
<?
echo &quot;<script>document.location.href='pagex.php'</script>&quot;;
?>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top