Hello.
I want to make forms in ASP (login and contact forms)

Let's start with the contact page: (where the form is)
(is this right, and am I gonna call it for example; contact.html or contact.asp?

<html>
<head>
<title>Hope you can help me...</title>
</head>
 
<body>
<form action="thanks.asp">
Name: <input type="text">
E-Mail: <input type="text">
<input type="submit" value="Submit">
</form>
</body>
</html>

And what I wonder now, is what am I gonna have in the thanks.asp file. Anyone who knows?

And if you don't mind, can you help me with a login form too?


And a final question.
- Do I need anything to make ASP? (If I do, where can I get it)


Anders

HI Anders.

To run ASP you need IIS4, IIS5, IIS6 or .NOT framework. IIS comes with MIcrosoft windows 200 and XP pro etc...

Here is some code to show some basic data capture, simple copy and paste into an .asp page

<%
 ' check to see if the form has been submitted
 if len(request.form("go")) then
  ' write out results
  response.write "<p>You submitted the following details</p>"
  response.write request.form("name") & "<br/>"
 
  response.write request.form("email")
 
 
 end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]">
<html xmlns="[url]http://www.w3.org/1999/xhtml[/url]">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<input type="hidden" name="go" value="yes" />
  <label>name
  <input type="text" name="name" />
  </label>
  <p>
    <label>email
    <input type="text" name="email" />
    </label>
  </p>
  <p>
    <label>
    <input type="submit" name="Submit" value="Submit" />
    </label>
  </p>
</form>
</body>
</html>

apologies for my last quote, Didnt come out as I intended

HI Anders.

To run ASP you need IIS4, IIS5, IIS6 or .NET framework. IIS comes with Microsoft windows 2000 and XP pro etc...

Here is some code to show some basic data capture, simple copy and paste into your .asp page and run it

<%
 ' check to see if the form has been submitted
 if len(request.form("go")) then
  ' write out results
  response.write "<p>You submitted the following details</p>"
  response.write request.form("name") & "<br/>"
 
  response.write request.form("email")
 
 
 end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]">
<html xmlns="[url]http://www.w3.org/1999/xhtml[/url]">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<input type="hidden" name="go" value="yes" />
  <label>name
  <input type="text" name="name" />
  </label>
  <p>
    <label>email
    <input type="text" name="email" />
    </label>
  </p>
  <p>
    <label>
    <input type="submit" name="Submit" value="Submit" />
    </label>
  </p>
</form>
</body>
</html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.