Can anyone give me the PHP equivalents for the following ASP statements:
1. Session("svURL")=MM_rsUser.Fields.Item("urlredirect")
and
2. Response.Redirect "http://website/" & Session("svUrl") &""
Many thanks
ASP to PHP translation
Moderator: General Moderators
1: sessionstart();
1: session_register("last_url");
1: $last_url = $urlredirect;
2: Header("Location: http://website/".$last_url);
1: session_register("last_url");
1: $last_url = $urlredirect;
2: Header("Location: http://website/".$last_url);
With recent versions of php you might also use the superglobal $_SESSION after starting the session.
http://www.php.net/manual/en/ref.sessio ... n.examples
http://www.php.net/manual/en/ref.sessio ... n.examples
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK