Author: zishandanish | Posted on: 11/16/2009 8:14:13 PM | Views : 508

Hi all,
I'm a bit tangled up here with a website that is running a variety of pages (HTML, ASP.NET and PHP). I'm building a few pages in ASP.NET all of which will contain a custom login control as the rest of the pages on the site. Problem is that I have to post the username and password to a PHP page (login.php) without using the traditional HTML tags. I tried using webrequest but it didn't seem to work for me for some reason. Here's the code that I used:
Protected Sub loginbtn_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles loginbtn.Click Dim request As WebRequest = WebRequest.Create("http://localhost/members/login.php") request.Method = "POST" request.ContentType = "application/x-www-form-urlencoded" Dim postdata As String = "username=testuser&password=testpassword" request.ContentLe ...

Go to the complete details ...