POST and Redirect from VB.net webpage to PHP webpage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lahsin
    New Member
    • Sep 2010
    • 1

    POST and Redirect from VB.net webpage to PHP webpage

    Hi all,
    I need a solution in VB.net to POST the variables and do a redirect to a php page where it accepts all the variables passed by the vb.net page

    Please treat this as urgent!

    Thanks
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Using VB.NET, you can redirect the user to another page using the Response.Redire ct("url",true) method.

    You will have to pass the "variables" via the URL so that you can retrieve them in the PHP page.

    -Frinny

    Comment

    • ZiadElmalki
      New Member
      • Sep 2010
      • 43

      #3
      You cannot POST from a redirect done one the server side. A Response.Redire ct is going to give the client a 302 response with the new url. The verb is not specified and the client will do a GET on a redirect. The client needs to post themselves. You put your variables in the query string instead or if you need to post maybe use the PostBackOptions class to specify a different url to post the form to from the client.
      Last edited by ZiadElmalki; Sep 22 '10, 11:29 AM. Reason: wrong word

      Comment

      Working...