Solved

Submit/email form help

Posted on 1997-11-01
3
184 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
Comment Utility
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
Comment Utility
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
Comment Utility
Sorry about the delay! Thank-you very much! Great service!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
This video teaches users how to migrate an existing Wordpress website to a new domain.

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now