Solved

Submit/email form help

Posted on 1997-11-01
3
203 Views
Last Modified: 2013-12-25
Does anyone know of a way to have a submit form on a page without cgi, or javascript. I don't want to use an outside service to host a cgi either. I just need a simple form that emails info to a selected recipient. I'm tired of dealing with different systems and webmaters to get access to cgi-bin read write..etc. I have frontpage but alot of times the webbots aren't loaded correctly on the server or it doesn't work. Any suggestions would be appreciated. Thanks
0
Comment
Question by:graphics
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
Holger101497 earned 100 total points
ID: 1855402
If you neither want to use JavaScript nor CGI, you're down to the very simple (yet effective):

<form action="mailto:yourmail@somewhere.net" method=post  ENCTYPE="multipart/form-data">
  <input type=text name="subject" value="Test2postform-data"><BR>
  <textarea COLS=40 ROWS=10 name="body">Testbody</textarea>
  <input type=submit>
</form>

You can play around with the combinations of ENCTYPE and METHOD to get what you want. If you specify GET and no enctype, the browser opens an e-mail form that the user can still edit. If you specify POST, the form is sent without further user-interaction.
ENCTYPE="multipart/form-data" will encode each form-element as a separate attachment while the "standard" encoding just garbles it into one long string. Just try which one you like best. Either way you can specify a subject-line for these mails by entering "mailto:youraddress@server.com?subject=MySubject" as ACTION.

Hope that's all you need. If it isn't, just ask.

Good luck!
0
 
LVL 6

Expert Comment

by:Holger101497
ID: 1855403
Hello? Still there? I would appreciate it if you could grade my answer because it turns into an automatic "C" otherwise! I think this answer deserves better!
(11-14-97)

Thanks!
0
 

Author Comment

by:graphics
ID: 1855404
Sorry about the delay! Thank-you very much! Great service!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

838 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