View previous topic :: View next topic |
Author |
Message |
Wishmaster -
Joined: 02 Dec 2003 Posts: 2
|
Posted: Tue Dec 02, 2003 4:51 am Post subject: HTML Forms and Abyss |
|
|
This is how I set my form up with html:
Quote: | <form action="mailto:emailhere" method="post" name="Contact">
<br>
Name<br>
<input name="Name" type="text" maxlength="30"><br>
Age<br>
<input name="Age" type="text" maxlength="30"><br>
Experience<br>
<input name="Experiance " type="text">
<br>
Location<br>
<input name="Location" type="text"><br>
Daytime Phone Number/Cell Phone *REQUIRED*<br>
<input name="Phone Number" type="text"><br>
Email Address *REQUIRED*<br>
<input name="Email Address " type="text"><br>
<br>
<input name="submit" type="submit"> <input name="reset" type="reset">
</form>
However, when I click the submit button, an outlook window pops up saying it is going to send an email to my email address. Then when I check my email, Ill actually get the email but instead of the form information being shown in the body of the email, i get an attachment that I cant open. .att or something.
Do forms work with Abyss or should I just upgrade to a real web host? |
|
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Tue Dec 02, 2003 5:16 am Post subject: |
|
|
Forms work with Abyss ! 8) |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Tue Dec 02, 2003 9:59 am Post subject: Re: HTML Forms and Abyss |
|
|
Wishmaster wrote: | However, when I click the submit button, an outlook window pops up saying it is going to send an email to my email address. |
What were you expecting to happen ? This is the HTML code for a standard form with an email link in - it is not an email client or mailer script.
It's also quite bad practise since it assumes the user has a working email client configured - if they have an email address but no client e.g. yahoo webmail etc, then you're going to lose business/contacts from people who are unable to email you.
If you want them to be able to send information to you without a prompt (assuming they're using Outlook) or to always be able to send information to you regardless of whether they have a properly set up client installed you'll need to use a server side mailer script instead. One of the most commonly used is FormMail - http://www.scriptarchive.com/formmail.html - but there are plenty of others.
Quote: |
Then when I check my email, Ill actually get the email but instead of the form information being shown in the body of the email, i get an attachment that I cant open. .att or something.
|
The form is just posting the data to the mailto link - if you open the .att file with Notepad, you should find it contains the information from each of the form fields although it won't be in a very readable form. If you're determined to keep it this way and not use a script, add the enctype tag to your post link like this :
<form action="mailto:emailhere" method="post" name="Contact" enctype="text/plain">
This tells the client that the information should be mailed as plain text and it will be sent in the body of the email.
Quote: |
Do forms work with Abyss or should I just upgrade to a real web host? |
Forms are working exactly as you told them to - you might have even more problems on a 'real web host' since you might not be permitted to use a formmail script. :D |
|
Back to top |
|
 |
Wishmaster -
Joined: 02 Dec 2003 Posts: 2
|
Posted: Tue Dec 02, 2003 9:01 pm Post subject: |
|
|
Ahh thanks so much, the info was very helpful.
And to think that I was 5 seconds away from adding text/plain to the enctype but didnt because I got too frustrated :-).
Anywho, thanks. |
|
Back to top |
|
 |
|