Question : Redirect to an PHP script from ASP.NET?

I have a very special problem. I'm using a newsletter system that is written in php. The script generates the HTML for the sign-up page code that I can put in my page. It is a standard HTML form that posts to a PHP script. The form holds some input text boxes and hidden fields.

I need to run some code before the script is run. So my idea was to change the HTML form to a ASP.NET Web Form and change the button to a server side button. On the onclick event I run my code and then call the php script via a response.redirect. I can't use server.transfer, because the php script runs on a different server.

When I redirect to the script the script displays an error page stating that no script parameters were specified. Its too long ago that I used response.redirect in standard ASP. It seems that the redirect looses the form data. Is there any way to accomplish what I need?

Thanks for any last minute help.

Merry Christmas!
Marcus

Answer : Redirect to an PHP script from ASP.NET?

yes you can...

after you are done on server do this

server.transfer("temp.aspx", true)

temp.aspx
-------------------------
http://phpdomain.com/login.php" method="post">
>" />
>" />
..

om")%>" />
om")%>" />



idea is after you done, you jump to this page, put all variables (request, session, public/friend parameters) into the form and submit on client...
Random Solutions  
 
programming4us programming4us