Question

Need help with creating an ASP contact page (have no ASP knowledge)

Asked by: AutomatedIT

I have almost zero ASP knowledge/experience, and I need to get an ASP contact form working on a website.

When I inherited the website, it was "broken" and I only have the page where you can input your contact information...  When you click on the Submit button it only goes to an error page.  I have attached a jpeg of what the contact form looks like.  

Could someone help me to get this working?  I am not sure where to start.  Are there templates available?

 

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-11-02 at 07:48:52ID24863949
Topics

Active Server Pages (ASP)

,

Programming for ASP.NET

,

Adobe Dreamweaver

Participating Experts
3
Points
500
Comments
8

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. ASP returning an JPEG
    I wrote a ASP script that returns a JPEG picture. This is a picture of a business-cards with a filed in name from Session("naam") variable. When I fill in the name I get the correct business cards and when I fill in the name again I get the first business card so th...
  2. JPEG
    I need to be able to convert a jpeg to a bitmap via VB6 code.
  3. ASP problem
    This will be answered very simply by someone I am sure. I am not an ASP guru at all, as you will soon gather. I have been following a very simple tutorial and in Visual Studio can see and modify the properties of different web controls e.g. label, textbox and button When I...
  4. ASP Upload/ASP Jpeg - Coldfusion Version?
    Can someone tell me what the ASP Upload and ASP Jpeg equivalent for Coldfusion is? Does the Coldfusion CFFILE tag perform the same thing that ASP Upload would or is it missing something? How about resizing Jpegs etc?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: thx2-netPosted on 2009-11-02 at 08:01:16ID: 25720548

Please paste code.  Then we can see what you're submit button is doing.

Also, do you want it to send an email, store items in database or what function do you want submit button to achieve? If you have no DB set up with these fields and then sending an email would be easier. So would need to know what email solution you have available from your web host. Let us know who your host is (shared, dedicated) and what email software you have available to you or if you can install something.

Here's a quick tutuorial on sending email from a form using ASP.

http://www.devarticles.com/c/a/ASP/Sending-Email-From-a-Form-in-ASP/

You can also send mail using Javascript if you are more familiar with that.

 

by: AutomatedITPosted on 2009-11-02 at 08:04:22ID: 25720577

I will see if I can get the code posted soon....  Until then:

We just need to send an email.

Hosting is shared hosting with GoDaddy.  It is Windows Hosting, but I am not sure of the email program.

 

by: thx2-netPosted on 2009-11-02 at 08:10:02ID: 25720645

If your hosting with Godaddy then visit this link. They explain everything and ahve great help files and support. They also have great customer service if you call them.

http://help.godaddy.com/article/512

You might want to consider their Intro to ASP they have some great tutorials

http://help.godaddy.com/article/100

You can also call them:
 Product and Technical Support: (480) 505-8877

 

by: thx2-netPosted on 2009-11-02 at 08:12:04ID: 25720660

To Use webformmailer.asp from Godaddy....

   1. Create a Web form, assigning unique names to your form fields.
   2. In the form tag, assign _gdForm/webformmailer.asp to the action attribute and set the form method to post:

      <form action="_gdForm/webformmailer.asp" method="post">
   3. In addition to the form fields you create, there are three hidden elements you can use.

      form_format determines in what format the information is delivered. Its values are 'text', 'csv', 'html', 'xml', and 'default' (same as 'text').

      form_order dictates in what order the fields are reported. Its values are 'default' (the same order as they appear on in the form), 'alpha' (alphabetized by field name) or a comma-separated, case-sensitive list of all or some field names.

      form_interval determines the frequency and packaging of delivery. To receive one email per form submission, the form_interval values are 'default' (every 10 minutes), 'hourly', and 'daily'. To receive all submissions in an attachment of one email, the form_interval values are 'digest', 'hourly_digest', and 'daily_digest'.

      For example:
      <form action="_gdForm/webformmailer.asp" method="POST">
      <input type="hidden" name="subject" value="Submission" />
      <input type="hidden" name="redirect" value="thankyou.html" />
      First Name: <input type="text" name="FirstName" />
      Last Name :<input type="text" name="LastName" />
      Email: <input type="text" name="email" />
      Comments: <textarea name="comments" cols="40" rows="10">
      Type comments here.</textarea>
      <input type="submit" name="submit" value="submit"/>
      <input type="hidden" name="form_order" value="alpha"/> <input type="hidden" name="form_interval" value="hourly"/> <input type="hidden" name="form_format" value="html"/> </form>

NOTE: Webformmailer.asp is accessed through a virtual directory. You cannot modify the file, and it does not display in the file manager.



 

by: AutomatedITPosted on 2009-11-02 at 08:12:32ID: 25720664

Here is the only code that I have.  

We no longer have any affiliation with the old host and do not have the emailForm.asp file that is listed.

<HTML>
<head> 
<style> 
/* base color elements below */ 
	A:link {color: #373737; text-decoration: underline;}
	A:visited {color: #373737; text-decoration: underline;}
	A:active {color: #373737; text-decoration: none;}
	A:hover {color: #373737; text-decoration: none;}
	p.title1 {font-size: 20px; font-weight: bold; color: #373737;}
	p.header1color {font-size: 12px; font-weight: bold; color: #373737;}
	p.color {color: #373737;}
	td.color {background-color: #373737;}
	table.color {border: solid 1px #373737;}
	hr {color: #373737;} 
/* gray elements below */ 
	td.ltgray {background-color: #CCCCCC;}
	td.dkgray {background-color: #999999;}
	table.gray {border: solid 1px #CCCCCC;}
	hr.gray {color: #CCCCCC;} 
/* white elements below */ 
	p.header1white {font-size: 12px; font-weight: bold; color: #FFFFFF;}
	p.white {color: #FFFFFF;} 
/* body elements below */ 
	p {font-size: 14px;}
	p.small {font-size: 10px;}	
        p.script {font-size: 18px; font-weight: bold; font-family: Times; font-style: italic;}
	table.layout {margin-left: 15px; margin-top: 10px;}
	li {font-size: 14px;}
	body {background-color: #F7F7F7; background-attachment: fixed; background-repeat: no-repeat; color: #000000; font-family: Garamond, Times New Roman, verdana;} 
</style> 
</head> 
<BODY BACKGROUND="bodybg.jpg" tppabs="http://mysite.com/bodybg.jpg"> 
<table border=0 cellspacing=0 cellpadding=0 class=layout height=95% width=500>
<tr>
<td valign=top><P class=title1>
  <INPUT type=hidden value="Follow Up Requested" name=system_subject> 
  <INPUT type=hidden value="My Company" name=system_toName> 
  <INPUT type=hidden value=forms@oldhost.com name=system_fromName> 
  <INPUT type=hidden value=forms@oldhost.com name=system_fromEmail> 
  <INPUT type=hidden value="email@mysite.com" name=system_toEmail> 
  <INPUT type=hidden value="mysite.com/content.asp?contentID=402505822" name=system_redirect>  
<FORM name=generalContact action="http://mysite.com/advdev/forms/emailForm.asp" method=post>
  <TABLE class=color cellSpacing=1 cellPadding=2 width=550>
<TBODY>
<TR>
<TD class=color width=550 colSpan=2>&nbsp;</TD></TR>
<TR>
<TD width=550 colSpan=2 height=5></TD></TR>
<TR>
<TD class=ltgray vAlign=bottom align=right width=175>
<P>First Name</P></TD>
<TD vAlign=bottom width=375><INPUT maxLength=50 size=30 name="userField_First &#13;&#10;Name"></TD></TR>
<TR>
<TD class=ltgray vAlign=bottom align=right width=175>
<P>Last Name</P></TD>
<TD vAlign=bottom width=375><INPUT maxLength=50 size=30 name="userField_Last &#13;&#10;Name"></TD></TR>
<TR>
<TD class=ltgray vAlign=bottom align=right width=175>
<P>Address 1</P></TD>
<TD vAlign=bottom width=375><INPUT maxLength=50 size=49 name="userField_Address &#13;&#10;1"></TD></TR>
<TR>
<TD class=ltgray vAlign=bottom align=right width=175>
<P>Address 2</P></TD>
<TD vAlign=bottom width=375><INPUT maxLength=50 size=49 name="userField_Address &#13;&#10;2"></TD></TR>
<TR>
<TD class=ltgray vAlign=bottom align=right width=175>
<P>City</P></TD>
<TD vAlign=bottom width=375>
<P><INPUT maxLength=20 name=userField_City> State <INPUT maxLength=2 size=2 name=userField_State> Zip <INPUT maxLength=12 size=5 name=userField_Zip></P></TD></TR>
<TR>
<TD class=ltgray vAlign=bottom align=right width=175>
<P>Daytime Phone</P></TD>
<TD vAlign=bottom width=375>
<P><INPUT maxLength=25 size=30 name="userField_Daytime Phone"></P></TD></TR>
<TR>
<TD class=ltgray vAlign=bottom align=right width=175>
<P>Evening Phone</P></TD>
<TD vAlign=bottom width=375>
<P><INPUT maxLength=25 size=30 name="userField_Evening Phone"></P></TD></TR>
<TR>
<TD class=ltgray vAlign=bottom align=right width=175>
<P>Fax</P></TD>
<TD vAlign=bottom width=375>
<P><INPUT maxLength=25 size=30 name=userField_fax></P></TD></TR>
<TR>
<TD class=ltgray vAlign=bottom align=right width=175>
<P>Email</P></TD>
<TD vAlign=bottom width=375>
<P><INPUT maxLength=50 size=30 name=userField_email></P></TD></TR>
<TR>
<TD class=ltgray vAlign=top align=right width=175>
<P>Comments</P></TD>
<TD vAlign=bottom width=375>
<P><TEXTAREA name=userField_comments rows=4 cols=30></TEXTAREA> </P></TD></TR>
<TR>
<TD vAlign=bottom align=middle width=550 colSpan=2><INPUT style="MARGIN-RIGHT: 15px" type=submit value=Submit><INPUT type=reset value=Clear> </TD></TR>
<TR>
<TD width=550 colSpan=2 height=5></TD></TR>
<TR>
<TD class=color width=550 colSpan=2>&nbsp;</TD></TR></TBODY></TABLE></FORM></P></td>
</tr>
</table>
<br> 
 
 
</BODY>
</HTML>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:

Select allOpen in new window

 

by: thx2-netPosted on 2009-11-02 at 10:46:37ID: 25722299

Ok, if you no longer use the old host and your new host is Godaddy, that's the issue. Godaddy does not use emailform.asp.  You need to recreate the form using webformmailer.asp from Godaddy if that is who is hosting this site and that is the server where this form is going to be used.

Replace the form action and the input values according to the Webformmailer.asp tutorial I provided above and it should work fine.  

These are the main 3 steps:

 1. Create a Web form, assigning unique names to your form fields (or use the form you have already)

 2. In the form tag, assign _gdForm/webformmailer.asp to the action attribute and set the form method to post:

    LINE 42 of your post shows your FORM name, change this info to:
   <form action="_gdForm/webformmailer.asp" method="POST">


    <form action="_gdForm/webformmailer.asp" method="post">
    In addition to the form fields you create, there are three hidden elements you can use.


You'll have to add a line like this into your form so it knows how you want the data sent to you formated.

<input type="hidden" name="form_order" value="alpha"/>
<input type="hidden" name="form_interval" value="default"/>
<input type="hidden" name="form_format" value="html"/>
 </form>

   The  "form_order" dictates in what order the fields are reported. Its values are 'default' (the same order as they appear on in the form), 'alpha' (alphabetized by field name) or a comma-separated, case-sensitive list of all or some field names.

 The  "form_interval" determines the frequency and packaging of delivery. To receive one email per form submission, the form_interval values are 'default' (every 10 minutes), 'hourly', and 'daily'. To receive all submissions in an attachment of one email, the form_interval values are 'digest', 'hourly_digest', and 'daily_digest'.  (so if you only want one form each time someone clicks submit, simply leave default and once every 10 minutes or within 10 minutes of completing the form it will be sent.


Then the  "form_format" determines what format the information is delivered. Its values are 'text', 'csv', 'html', 'xml', and 'default' (same as 'text').

If you want HTML reports use HTML, if you want default text used default or text. If you want csv so you can import into excel or spreadsheet use csv.

You'll also have to change lines 38 - 40 to match what's going on for the new host.


 

by: icopalPosted on 2009-11-03 at 01:19:44ID: 25727186

Hi, I would suggest that you read up on the subject first. Take a quick tour here http://w3schools.com/asp/default.asp and after that ask your questions, if you got any at all. It will be alot easier to help you after this.

 

by: EarthedPosted on 2010-02-01 at 00:11:46ID: 26452675

Hi,

I have a <form> dilema trying to implement the GoDaddy ContactUs page in ASP.NET using the _gdForm/webformmailer.asp file, similar to the problem identified above.

Under GoDaddy Account Management:
Hosting.Content.Form Mailer
1. I have setup the Form-mailer email address that must be setup
2. I have set the checkbox to reinstate the _gdForm  directory contents (directory is hidden in FTP viewers)

I use an ASP.NET master page which already contain a <form> declaration:
   <form id="form1"   runat="server">
   ....
   </form>

My Contact.aspx page derives from this masterpage

and as I have found out, I CANNOT nest <form> declarations

How then can I integrate the GoDaddy form-mailer (shown below)

<form action="http://www.earthed.net.au/_gdForm/webformmailer.asp" method="POST">
.....
</form>

Must I integrate the two <form> declarations  into one?

I am pretty new to ASP.NET.  

Any help would be appreciated.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...