Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2006, 05:57 PM
Authorized User
 
Join Date: May 2006
Location: Bradford, , United Kingdom.
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default Contact Form

Hi,
I am in need of some urgent help with a contact form and don't know where to begin with ASP. Any chance of creating with the following fields:

Name:
City:
E-mail:
Enquiry: (drop box with: Advertisement, Sponsorship, Other)

My site is waiting to go live once this is done, so really appreciated if this can be done. Thank you in advance...

 
Old November 18th, 2006, 11:16 AM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi!

You can use good old-fashioned html for your form, like this:

Code:
<form name="myform" action="contact.asp" method="post">
Then you make your little textboxes like this:
Code:
Name: <input type-"text" name="name"><br />
City: <input type="text" name="city"><br />
(same thing for e-mail except the name should be "email"). Now you make your dropdown box like this:

Code:
Enquiry: <select name="enquiry">
            <option>Advertisement</option>
            <option>Sponsorship</option>
            <option>Other</option>
         </select>
Last, you'll need a submit button and a reset button, like this:

Code:
<input type="submit" value="Submit"> 
<input type="reset" value="Cancel">
Now you're ready to make your asp file, called "contact.asp", but before you can begin to code it, you need to know exactly what you want to do with the data that is being entered into the form. Do you want to just display it on the screen, or do you have something else you want to do with it? For displaying it, you'll do something like:

Code:
Name: <%=Request.Form("name")%>
Do the same thing with city, email, and enquiry. Sorry for being long-winded. Hope this helps! :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error With Contact Form ASP.NET 3.5 CSharpCoder BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 July 28th, 2008 04:08 PM
Contact Form and Gmail Jamessaep BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 April 16th, 2008 07:58 AM
Contact form XML attachments. retroviz BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 March 16th, 2008 09:52 AM
Add Contact nileshpatel Classic ASP Components 0 March 10th, 2007 01:50 AM
PHP contact form probe4 PHP How-To 1 September 14th, 2005 12:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.