Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Web page form submission

Posted on 2009-02-19
22
Medium Priority
?
172 Views
Last Modified: 2016-08-29
Ok..heres what i got..have a basic html website that i want to put a form on where people can submit information or request information.  I know i can just create the form and put an e-mail button and a mailto: statement and it will open their desktop mail app.  What i was looking for is a way to get that data into maybe a report of some type. We host the site ourselves.  Any ideas? Thanks!!
0
Comment
Question by:jasonmichel
  • 12
  • 10
22 Comments
 
LVL 16

Expert Comment

by:sunithnair
ID: 23684554
You can write the code for sending the email in an asp page and the html page posts to the asp page.
0
 
LVL 1

Author Comment

by:jasonmichel
ID: 23684610
can you give me a hand on how to do that..ASP is something beyond me..lol,  how exactly would it work posting to the asp page?
0
 
LVL 16

Expert Comment

by:sunithnair
ID: 23684692
Check this link http://www.w3schools.com/asp/asp_send_email.asp. If you give me the html page you have i will create an asp page for you.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 1

Author Comment

by:jasonmichel
ID: 23684830
A file has been uploaded to EE-Stuff.com

Uploaded by : jasonmichel
Filename : contact.rar
Size : 18,562 bytes
Comment : all contact/thankyou forms

You can download this file from https://filedb.experts-exchange.com/incoming/ee-stuff/7531-contact.rar

If other files are available for this question, then they can be accessed from https://filedb.experts-exchange.com/incoming/ee-stuff/7531-contact.rarhttps://filedb.experts-exchange.com/incoming/ee-stuff/7532-contact.zip
https://filedb.experts-exchange.com/incoming/ee-stuff/7535-contact.zip
0
 
LVL 1

Author Comment

by:jasonmichel
ID: 23684840
https://filedb.experts-exchange.com/incoming/ee-stuff/7531-contact.rar

that is the link to the contact forms and the the html thank you forms..thanks again for the help
0
 
LVL 1

Author Comment

by:jasonmichel
ID: 23685717
any luck?
0
 
LVL 16

Accepted Solution

by:
sunithnair earned 2000 total points
ID: 23685787
Here are the files https://filedb.experts-exchange.com/incoming/ee-stuff/7532-contact.zip. I made some modification to your html page and you will have to put the currect from and to email address in the asp page
0
 
LVL 16

Expert Comment

by:sunithnair
ID: 23685808
Sorry can you also change the action of the files freestuff.html, freereport.html and freereport.html to sendmail.asp like this
<form name="form1" method="post" action="sendmail.asp" onSubmit="return checkForm();">

Open in new window

0
 
LVL 1

Author Comment

by:jasonmichel
ID: 23686007
so i just need to swap files out..and then when they hit submit, the data gets transmitted to the e0mail address as XML?  i assume i'll have to have SMTP on the IIS server?
0
 
LVL 16

Expert Comment

by:sunithnair
ID: 23686102
should have it you also need to say as i said in the above post also need to change the email address in the asp page
0
 
LVL 1

Author Comment

by:jasonmichel
ID: 23692391
can you point to where to change the e-mail in the asp page? and that snippet you posted..where does that get inserted?
0
 
LVL 16

Expert Comment

by:sunithnair
ID: 23694328
Towards the end of the sendmail.asp page you can see this. Change this to the from email address you want to use and the to email address to which the email has to be forwarded.

myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
0
 
LVL 1

Author Comment

by:jasonmichel
ID: 23694648
can't believe i missed that...lol i think the problem was i was looking in the html form.  and that other code you wanted me to add..where does that go?
0
 
LVL 1

Author Comment

by:jasonmichel
ID: 23695046
tried to send a test message from the site and got and error

The page cannot be displayed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.
--------------------------------------------------------------------------------

Please try the following:

Contact the Web site administrator if you believe that this request should be allowed.
Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Go to Microsoft Product Support Services and perform a title search for the words HTTP and 405.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Setting Application Mappings, Securing Your Site with Web Site Permissions, and About Custom Error Messages.
0
 
LVL 16

Expert Comment

by:sunithnair
ID: 23696011
Can you give me a link to the page where you have hosted it?
0
 
LVL 1

Author Comment

by:jasonmichel
ID: 23696145
0
 
LVL 16

Expert Comment

by:sunithnair
ID: 23705444
Have you not added the lines i told you in the html pages. Change the action attribute of the html pages to sendmail.asp. It should look like this
<form name="form1" method="post" action="sendmail.asp" onSubmit="return checkForm();">

Open in new window

0
 
LVL 1

Author Comment

by:jasonmichel
ID: 23705497
no i did not, i asked you where i needed to enter that.  So i need to look for the action line and replace?
0
 
LVL 16

Expert Comment

by:sunithnair
ID: 23705508
Try this one. I had done some mistakes in the code. I am a c# eveloper so just coded according to that. I hav emade some modifications. Please use this file https://filedb.experts-exchange.com/incoming/ee-stuff/7535-contact.zip. I have also changed the html files for you. You just need to change the sendmail.asp file to the email address you require.
0
 
LVL 1

Author Comment

by:jasonmichel
ID: 23705958
you're awesome..thanks..ill upload first thing monday and test
0
 
LVL 1

Author Comment

by:jasonmichel
ID: 23749246
still nogo.  still get error when I try to submit contact page
0
 
LVL 16

Expert Comment

by:sunithnair
ID: 23885869
Sorry for the late reply. I went through your site and seems that you have changed some of the code. The error i get is

/sendmail.asp, line 78

myMail.Subject=Netguard Site

This is because you need to put the text in quotes like this

myMail.Subject="Netguard Site"

Try this and let me know
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
How do you create a user-centered user experience on your website? And what are some things you should consider in the process?
The viewer will learn how to dynamically set the form action using jQuery.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question