How do you make a redirect in PHP? Using only PHP to redirect user to another page

preview_player
Показать описание
#phpRedirect #headerLocation #howToRedirectPHP
We create a PHP redirect just using a function built into the core of PHP.

I have been writing software for 30+ years and enjoy working with new clients and teaching others how to develop.

SEND BUSINESS CORRESPONDENCE TO:
Idea Pro LLC or Joshua Herbison
2901 E Greenway Rd. #54171
Phoenix, AZ 85032

Рекомендации по теме
Комментарии
Автор

I use redirects all the time. A quick video for beginners looking for a way to redirect to another page. I can create another video expanding on the use of it if I need to. Thank you all for watching and commenting!

jherbison
Автор

Thanks for the video. It added a lot.

Dude, I added the iframe code next to the redirect, but on the next page the iframe cookie has not been marked.
In the address bar it shows the website ending no_cookies_from_redirect=1
How can I fix this?
Thank you in advance for your return.

goodchoice
Автор

great short video, but what if i have many pages and i may share on social media and someone clicks to view but then needs to signup and login before viewing. how do i make the visitor to be redirected to the page that brought the user to the website after the visitor is logged in?

greatwhitelodge
Автор

I almost had a headache for that header already sent error, thank you so much for the help

morteza.saaedi
Автор

my friend... Thank you very much
this helped me a lot!

unkillable
Автор

thank you for the tutorial ! can you do tutorial of login system and redirect to another page after successful login.

nurulsyazana
Автор

Hi and thank you for this video. I have a contact us form that when someone visits this page it sends a blank. When someone fills the form out and if they refresh it sends again. Is there a way to resolve this? I am a newbie so it's a little confusing to me.

hughclarke
Автор

How to redirect a page which is in another folder ?

Factrythm
Автор

when i test my app in XAMPP everything works. But when I upload site on host server then my header('Location:'); function is not working

miroslavstankovic
Автор

This function doesn't work for me.... i don't get redirected, it loads the new page without leaving the old one, so i see both pages and its terrible since the first one is the login page. I am struggling to find a solution to this. What dou you think ?

mind
Автор

So you are saying that PHP can not use the href like javascript, that's stupid...how on earth do I get back to my index.html page after the form is submitted??

nigelpallatt
Автор

Great video, is it possible to get this to work to redirect a pdf to a html page?

Cy-vuhv
Автор

Hi iam struggling to open the content of another page using a link .When i try to click the link it
will display the name of the file instead of the content in that file,

godfreymukondo
Автор

Can we perform 301 redirection usin plain php?

subjectfrank
Автор

this video after 2 years :
still working 😍
saved the day to me
ireally really thanks
and ihope god found you the real way to paradise and became a muslim

love you sir ❤

kurdstan_neshteman
Автор

Hello I Was Using PHP From last 7 Years, Now I Moved To JavaScript. I Request You To Create JavaScript Videos.

I Will Put Your Video Link In My Youtube Videos Because I Use Hindi Language And You Use English.

I Am Going To upload videos soon.

logicalvaibhav