sigung_q Posted February 14, 2014 Share Posted February 14, 2014 Is there a way to load a page (jump to a link) n PHP, like the <a href= /> in HTML? Link to comment Share on other sites More sharing options...
Ingolme Posted February 14, 2014 Share Posted February 14, 2014 There's the Location header for redirections, described in this page: http://es1.php.net/manual/en/function.header.php If you just want a link, though, just use the <a> element. Link to comment Share on other sites More sharing options...
sigung_q Posted February 15, 2014 Author Share Posted February 15, 2014 (edited) Thanx Foxy. This looks like what I need. However, it doesn't actually open the page, rather it comes up with a message asking if I want to save the file, or open. When I choose open, it simply keeps coming back with the same message. It gets into a loop. What I'm tryng to do is load two different pages based on a conditional statement "if - else". I have yet to figure out how to do this. I know it's possible, as on the web, one can be redirected all over the place depending upon certain conditions. The <a> element doesn't seem to support "if - else" type statements, especially where variables are concerned. Edited February 15, 2014 by sigung_q Link to comment Share on other sites More sharing options...
thescientist Posted February 19, 2014 Share Posted February 19, 2014 let's start with some code first.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now