This is a discussion on "Adding a form ..." within the Web Page Design section. This forum, and the thread "Adding a form ... are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Adding a form ...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Adding a form ...
I'm going to be making a form with notepad, and HTML..
I want to make it the form, so it just emails to me. Everytime i do this though, it says that the user needs to have an email address ... Is there a way around it, so the details go to my email but don't don't require the person filling out the form to have an email address? |
|
|
|
|||
|
That's unusual. They shouldn't need one, what's you code look like?
|
|
|||
|
<form action="MAILTO:kai@drysdale-online.com" method="post" enctype="text/plain">
Full Name <input type="text" name="name" value="" size="20"> Email Address <input type="text" name="email" value="" size="20"> Mailing Address <input type="text" name="Address" value="" size="60"> Quanitity | Product Reffrence Number | Product Name <input type="text" name="Quantity" value="" size="10"> <input type="text" name="Product Number" value="" size="18"> <input type="text" name="Product Name" value="" size="40"> <input type="submit" value="Send"> <input type="reset" value="Reset"> |
|
|||
|
Your using a mailto tag which will force them to use a email cleint. You really need to use get or post this will solve your problem.
|
|
|||
|
In order to use POST to send your form you need a server side script to deliver the message to you, such as PHPs formail.
|
|
|||
|
Awsome...
Can you guys tell me where to get one of those please? |
|
|||
|
PHPs Formmail is here: http://www.scriptarchive.com/formmail.html
A good site for scripts in general in many languages is: http://www.hotscripts.com/ |
|
|||
|
I'm not sure if i understand how it works ...
You add the formail to a certain part of your website .., but i'm not sure where. Then after that, is it just like a normal form? |
|
|||
|
Ok, does your host support ASP, PHP or any other server side languages?
If so, you can use a server side script to take messages that people enter on your webpage and send them to you via email. Alternatively, you can sign up to a service such as http://www.formmail.com/ which costs a small amount but will take the messages for you and therefore eliminates the need for your host to support any server side languages. |
|
|||
|
Yup ./... My site does support all that.
Is there a walkthrough fr this? because I Totally don't know where to begin!! Where do i begin? |
|
|||
|
Ok, there's a detailed readme that you can get with formmail which gives you details on how to set up the script and all the options to configure your form. Simply get a normal form, the method of which should be "post" and the action should be the formmail script.
You give the formmail script the email address you want the mails to be sent to and it does most of the work for you... |
|
||||
|
You site supports ASP and PHP?
Ok... lets presume your site has ASP enabled... here's an article I wrote a long time back:- Sending an email in ASP using CDONTS If the above still doesnt make sense to you, then it may be wise to jump in and give it a try anyway.... when you get stuck, post up your code (using [ code] tags)
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Ok ... I have edited, and added the .pl script to my cgi bin.
I have used the following script Quote:
Ugh ... HELP! |
|
|||
|
The action parameter should be the .pl script that you have added.
In that .pl script, the email address to which you want the form data to go, should be added. |
|
|||
|
I dont understand ...
Can you add it in for me .. and repost the script? And i've added my email address in the PL script |
|
|||
|
Hrmm ??? I'm still lost
|
|
|||
|
<form action="MAILTO:kai@drysdale-online.com"
should be <form action="scriptname.pl" but obviously it should be the name of the script and also the location... depending on where you put it! |
|
|||
|
Hrmm ...
Now that goes to an error page .. I don't think I edited the .pl document corretly ... When i opened it in notepad there was ALOT of gibberish stuff ... Hrmm .... |
|
||||
|
If you're server supports PHP, this can easily be done with a normal HTML form and a .php file.
See the source code for the form on this page: http://www.bostonwebstudio.com/contact.php ...erm, I just looked around this Reply Box and I don't see a Attachments button. Anyway, the PHP file I use to make this all work is located here: http://www.bostonwebstudio.com/emailform.php, but I don't think you can download it through the browser. Edit: Actually, here's a link to the script itself: http://www.hotscripts.com/Detailed/20173.html |
|
|||
|
Quote:
|
![]() |
| Tags |
| adding, form |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Form creating record but not adding data | Andrew1986 | Databases | 22 | Oct 19th, 2007 08:47 |
| Adding quizzes | hawashp | Web Page Design | 12 | Oct 5th, 2007 12:04 |
| I need help adding a form to my website | doone | Starting Out | 6 | Sep 13th, 2007 18:25 |
| Adding a calendar? | Stefan83 | Website Planning | 1 | May 8th, 2007 19:18 |
| adding a field input to the subject in a form | goatsalad | PHP Forum | 1 | Feb 3rd, 2006 14:49 |