PHP redirect in HTML assist -
i'm looking assistance on redirect of href.
in php above html code :
<?php session_start(); $cid = $_session['userid']; ?>
in html below , possible me redirect them using href?
for example:
<a href="<?php $cid.memberpage.net;?>"only , join now</a>
is possible so? need thank in advance.
you can redirect user in many ways..
using php:
<?php $cid="http://your.awesome.site/page.php"; header('location: '.$cid); ?>
or using attribute
<a href="<?=$cid;?>"only , join now</a>
or automatically refresh in n sec
<meta http-equiv="refresh" content="n; url='<?=$cid;?>'"><!-- replace n number of sec want user stay on page -->
hope helps.
Comments
Post a Comment