the_ut_tick Posted February 28, 2007 Share Posted February 28, 2007 I have been staring at this too long. I can't seem to remember how to send the user to a new web page in simple html. In other words if X is true, go to this website, and it automatically goes there. Thanks Quote Link to comment Share on other sites More sharing options...
fenway Posted February 28, 2007 Share Posted February 28, 2007 There is no (is true) in simple HTML. Quote Link to comment Share on other sites More sharing options...
dustinnoe Posted March 1, 2007 Share Posted March 1, 2007 Use javascript. Quote Link to comment Share on other sites More sharing options...
fenway Posted March 1, 2007 Share Posted March 1, 2007 That is, set the document's location. Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted March 19, 2007 Share Posted March 19, 2007 Use meta refresh and then it would redirect users. But what you want to do is very complicated. Sounds like php and then you can embed links within the php like this: <?php if... else...javascript redirect. ?> As you see, this is complicated. And requires javascript and php! Quote Link to comment Share on other sites More sharing options...
AndyB Posted March 19, 2007 Share Posted March 19, 2007 <?php if... else...javascript redirect. ?> As you see, this is complicated. And requires javascript and php! I doubt it requires php at all. As already noted, javascript is the solution to the question originally posed, although it was asked in a less than complete fashion. Like, "what's this X that needs to be true?" Quote Link to comment Share on other sites More sharing options...
worldworld Posted March 21, 2007 Share Posted March 21, 2007 I think you can use asp too.... Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted March 21, 2007 Share Posted March 21, 2007 javascript is only a solution if the user has javascript available... You know how I feel - a page should work regardless - so in this case it would require serverside scripts. Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted April 9, 2007 Share Posted April 9, 2007 <?php if... else...javascript redirect. ?> As you see, this is complicated. And requires javascript and php! I doubt it requires php at all. As already noted, javascript is the solution to the question originally posed, although it was asked in a less than complete fashion. Like, "what's this X that needs to be true?" Seems like you don't know what you are talking about: <?php $page="redirect page url don't add extension -> .php"; if ( ...x is ture... ) { echo "<META HTTP-EQUIV=Refresh CONTENT=\"2; URL=$page.php\">"; } else { echo "You Shall stay here on this page since x is false"; } ?> Quote Link to comment Share on other sites More sharing options...
cyrixware Posted April 17, 2007 Share Posted April 17, 2007 both javascript and php can do that re directing to the other site. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.