What PHP code will echo or print the redirect link without getting us redirected in front end? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What PHP code will echo or print the redirect link without getting us redirected in front end?

Suppose we have a link https://abcd which will redirect us to link https://134 when we click on it. How can I echo https://134 link without getting redirected to that webpage?

14th May 2020, 8:53 AM
Ashish Sah
Ashish Sah - avatar
1 Answer
0
You need to send the url from php as a string, and then put it in the href of an <a> tag in html. so you code will look something like: <a href="<?php echo $url; ?>">Link name</a>
27th Jun 2020, 10:46 AM
Dominique Abou Samah
Dominique Abou Samah - avatar