TechLady Posted January 3, 2006 Share Posted January 3, 2006 Hello Everyone,I am brand new to asp. I am on the tutorial for asp and I can't get the form to work. When I submit I don't see the informtaion I filled out in the text box. I just get the word "Hello". What am I doing wrong?Here is my code.<%@ Language=VBScript %><html><body><form action="demo_reqquery.asp" method="get" ID="Form1">Your name: <input type="text" name="fname" size="20" ID="Text1"/><input type="submit" value="Submit" ID="Submit1" NAME="Submit1"/></form><%dim fnamefname=Request.QueryString("fname")If fname<>"" Then Response.Write("Hello " & fname & "!<br />") Response.Write("How are you today?")End If%></body></html> Link to comment Share on other sites More sharing options...
TechLady Posted January 3, 2006 Author Share Posted January 3, 2006 Well never mind. I figured it out. But the code works well in the head of the receiving page and the body. Which is best? Link to comment Share on other sites More sharing options...
aspnetguy Posted January 4, 2006 Share Posted January 4, 2006 I like to keep it at the top of the page, even before the <html>It helps seperate the ASP code form the HTML code. But that's just me. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now