contact form PHP redirect is not working

前端 未结 7 392
迷失自我
迷失自我 2021-01-20 01:42

I im trying to redirect to my homepage after submitting a message on my contact form, the form sends the email but I get this message:

Array
(
    [name] =&g         


        
7条回答
  •  有刺的猬
    2021-01-20 01:48

    This is very common problem in php. some ways to sort out:

    1. use on top of the page.

    2. check if you accidentally add some white spaces before the php open tag or after the php closed tag.

    3. if still not solve, use java-script window.location instead of header.

    Hope it help. Happy coding!!

提交回复
热议问题