Jump to content

simple html question


the_ut_tick

Recommended Posts

  • 3 weeks later...

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!

Link to comment
https://forums.phpfreaks.com/topic/40454-simple-html-question/#findComment-210318
Share on other sites

 

<?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?"

Link to comment
https://forums.phpfreaks.com/topic/40454-simple-html-question/#findComment-210321
Share on other sites

  • 3 weeks later...

 

<?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";
}
?>

Link to comment
https://forums.phpfreaks.com/topic/40454-simple-html-question/#findComment-225209
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.