Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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...

Reply With Quote
  #2 (permalink)  
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! :)

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:10 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.