• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 354
  • Last Modified:

HELP PLEASE: HTML & <FORM>

Hello Everyone

I am currently doing a simple site and need to include a simple form that people can submit some simple contact details.

This is my form:

------------------------------------------------------------------------------------------------------------
<FORM METHOD="POST" ACTION="mailto:siamesefish@hotmail.com">
          Name:
            <INPUT TYPE="text" NAME="name" SIZE="30">
          Organisation:
            <INPUT TYPE="text" NAME="organisation" SIZE="30">
          E-mail:
            <INPUT TYPE="text" NAME="email" SIZE="30">
          Contact Number:
            <INPUT TYPE="text" NAME="phone" SIZE="30">
          Comments:
            <TEXTAREA NAME="comment" ROWS=6 COLS=40></TEXTAREA>
            <INPUT TYPE="submit">
            <INPUT TYPE="reset">
</FORM>
------------------------------------------------------------------------------------------------------------

Here is my problem. The form managed to submit and send to my inbox but... All the details come in a POSTDATA.ATT file attachment to me. Obviously I didnt want this and I have no idea what and how to read ATT files. I was hoping the submitted details would have come in simple displayed text format. : (

I searched online and it says that "ACTION="mailto:..." is not supported by IE any more.

If anyone would how I could do this simple mailto form to get it to catupure and submit the details to my inbox, I would be a BIG BIG help. Its quite urgent too. Im using dreamweaver and am not really that good of a coder.

A solution to this would be of great help to me. Thanks!

Regards
EJQ
0
siamesefish
Asked:
siamesefish
  • 3
  • 2
  • 2
  • +2
3 Solutions
 
nltechCommented:
what kind of server scripting is available? perl, php, asp?
0
 
siamesefishAuthor Commented:
I think all of the above. But I can't really test any of them cause im using XP home Edition and I don't have that testing support...: ( I was hoping for a simple way.
0
 
KennyTMCommented:
Hi. Firstly, for the POSTDATA.ATT thing you may try using

<FORM METHOD="POST" ACTION="mailto:siamesefish@hotmail.com" enctype="text/plain">

so to force the mail delivered in clear text. However, as you mentioned, IE doesn't support action="mailto:..." now. So, would you mind if the client will get a "compose" window when they submit?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
HairyMikeCommented:
Hi,

You know you can download free form-to-mail scripts written in cgi or asp?  There are even some services where these scripts are hosted (see www.formmail.com), although I believe they 'thank you' pages - that are displayed when the form is submitted would be plastered with adverts.

The best solution for you is if you can run these scripts on your own server.
0
 
siamesefishAuthor Commented:
ah that enctype works
but only if the user has outlook and a set up outlook account.

is there a way to do it without needing outlook or other mail support?

(thanks : )
0
 
HairyMikeCommented:
0
 
nltechCommented:
here's an online tool that can create a simple contact from in any of those scripting languages (perl, php, asp)
http://www.tele-pro.co.uk/scripts/contact_form/

here's a pretty easy to customize php one, includes a sample html page with a form already made that uses it...
http://www.web4future.com/easiest-form2mail.htm

and this is the php script i use, when i need one..
http://www.newmedia.lincoln.ac.uk/jgillyon/personal-work.php

your hosting provider may have "form mailer" or "contact us" scripts available for your use as well.. these are the two i provide for my hosting clients:
http://web.mit.edu/wwwdev/cgiemail/index.html 
http://www.scriptarchive.com/readme/formmail.html

0
 
siamesefishAuthor Commented:
I used the one from http://www.tele-pro.co.uk/scripts/contact_form/ to generate the form.

they created a contact.htm
and a contact.asp

the last step, how do i get them to work together?
Pardon if i seem like a total noob.

When i tried I get this error message.
"The requested method POST is not allowed for the URL /contact.asp."

I created 2 pages. one with the form and a blank one with just the asp coding. Is that correct?
0
 
dukestaTAICommented:
Maybe this help to explain.

http://www.w3schools.com/asp/asp_send_email.asp

Thanks,
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 3
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now