hi
I want to redirect my php page to another domain and sending some data via post method (not get method)

is there any way to doing it with header() function? or other solution with php?

example that use of get method:

header("Location: http://www.exapmle.com/?name=reza&family=tony"); 
exit;

    Yes, if you also send the appropriate encoding (e.g., form-url-encoding) and send the POST data in the body.

      please make example for my code with your soloution.

      thanks

        As far as I know you can only specify response headers with [man]header[/man].

        The easiest method for sending post requests is probably [man]cUrl[/man]. Start by looking at curl_init, curl_setopt and curl_exec.

        You could also use [man]stream_context_create[/man]

          Write a Reply...