how to send redirect page pass variables as post variables from a php script

前端 未结 3 1887
余生分开走
余生分开走 2021-01-27 18:13

you can find a similar question here PHP Post Request inside a POST Request but this is not working in my context.

I have a form (reservation form for a tour website) an

3条回答
  •  不要未来只要你来
    2021-01-27 18:43

    To create a POST request, open a up a TCP connection to the host using fsockopen(), then use fwrite() on the handler returned from fsockopen() with the same values you used in the header functions in the OP. Alternatively, you can use cURL.

    
    

    Where $Message would be your variables.

    EDIT: i answered this long ago maybe i did forget to reference from php.net but here is the link per comment http://www.askapache.com/htaccess/sending-post-form-data-with-php-curl.html as Reference

提交回复
热议问题