Sunday, August 2, 2009

Can you help me with asp and a ms data base?

Ok, i want to be able to type in a url like www.somthing.com/username.asp and then have it retrieve the information from the data base by looking up the user. the problem is that i dont know how to make it to look up the username from the url. any help would be greatly apriceated. thanks.

Can you help me with asp and a ms data base?
The user will need to input his/her name somehow. How about an HTML form?





%26lt;form action="post"%26gt;


Name:


%26lt;input type="text" name="username"%26gt;%26lt;br%26gt;


%26lt;input type="submit" value="Go!"%26gt;


%26lt;/form%26gt;





When the user clicks the Go button, the form will post the data back. Use ASP to capture this.





%26lt;%


If Len(Request.Form("username")) %26gt; 0 Then


UserName = Request.Form("username")


' Do your database stuff here...


End If


%%26gt;


No comments:

Post a Comment