User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 397,165 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,468 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting

Help with asp form will not display contact information

Join Date: Jul 2004
Location: Sydney, Australia
Posts: 166
Reputation: Lafinboy is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 7
Lafinboy's Avatar
Lafinboy Lafinboy is offline Offline
Junior Poster

Re: Help with asp form will not display contact information

  #2  
Sep 18th, 2004
OK everything is good with your code. The reason you are not seeing any output from the form submission on your asp page is because you are not using any code to display the information.

Try using this code sample for your asp page:
<html>
<head>
<title> asp page</title>
</head>
<body>
<h1> Here is your contact information</h1>
<% 
'// declare variable names to hold the form field values
Dim strfullname, straddress, strcitystatezip, strphone
'// assign values to the declared variables
strfullname = Request.Form("fullname")
straddress = Request.Form("address")
strcitystatezip = Request.Form("citystatezip")
strphone = Request.Form("phone")
%>
<!-- Now display the results from the form submission using the above variables -->
Your Name : <%=strfullname%><br />
Your Address : <%=straddress%><br />
Your Address : <%=strcitystatezip%><br />
Your Phone : <%=strphone%><br />
</body>
</html>
If I've been a help please confirm by clicking the Add to Lafinboy's Reputation link in the header of this reply.

Lafinboy Productions
:: Website Design :: Website Development ::

Reply With Quote  
All times are GMT -4. The time now is 3:48 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC