Print Page | Close Window

ASP Form Help!

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=27870
Printed Date: 29 March 2026 at 4:41am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: ASP Form Help!
Posted By: Geekygirl
Subject: ASP Form Help!
Date Posted: 24 September 2009 at 1:13pm
Hi Everyone,
I was put in charge for designing a new website for our business and I'm having trouble with the web form. The aim is for the users to input all the data and for it to automatically edit/format the information before emailing it to our business email.

Now I have completed the first part, i have made the form and used a .asp page to automatically place the data where it is meant to go etc but I don't know how to make that data then send to a email. Below is the script I'm using, if anyone could help I'd appreciate it so much.

Form page:

<html>
<body>


<form action="test2.asp" method="post">

<b>Suburb</b>
<<input type="text" name="suburb" value="<%=suburb%>" /> <br />

<b>Date Available</b>
<input type="text" name="avail" value="<%=avail%>" /> <br/>

<input type="submit" value="Submit" />
</form>
<hr>

</body>
</html>
--------------------------
and the .asp page is
--------------------------

<%
If Request.Form<>"" Then
      If Request.Form("name")<>", " Then
           suburb=Request.Form("suburb")
           avail=Request.Form("avail")
       rent=Request.Form("rent")
      end if
end if
%>

<%
If Request.Form<>"" Then
 
      Response.Write("avail " & Request.QueryString("avail"))
Response.Write(", ")

      Response.Write("" & suburb)
Response.Write(", ")

      Response.Write("$" & rent)

end if
%>




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net