contact form PHP redirect is not working

前端 未结 7 462
迷失自我
迷失自我 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 02:01

    this is error

    print_r($_POST);
    
    header('Location:mydomain');
    

    You are printing something before the header("location: mydomain.com")

提交回复
热议问题