Adding a form ...

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 6th, 2005, 03:35
Junior Member
Join Date: Jun 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote

  #2 (permalink)  
Old Jul 6th, 2005, 05:37
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
That's unusual. They shouldn't need one, what's you code look like?
Reply With Quote
  #3 (permalink)  
Old Jul 6th, 2005, 09:48
Junior Member
Join Date: Jun 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
<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">
Reply With Quote
  #4 (permalink)  
Old Jul 6th, 2005, 16:17
New Member
Join Date: Jun 2005
Location: USA
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #5 (permalink)  
Old Jul 6th, 2005, 17:27
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #6 (permalink)  
Old Jul 7th, 2005, 09:20
Junior Member
Join Date: Jun 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Awsome...

Can you guys tell me where to get one of those please?
Reply With Quote
  #7 (permalink)  
Old Jul 7th, 2005, 10:26
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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/
Reply With Quote
  #8 (permalink)  
Old Jul 7th, 2005, 11:25
Junior Member
Join Date: Jun 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #9 (permalink)  
Old Jul 7th, 2005, 12:55
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #10 (permalink)  
Old Jul 8th, 2005, 04:25
Junior Member
Join Date: Jun 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #11 (permalink)  
Old Jul 8th, 2005, 09:09
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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...
Reply With Quote
  #12 (permalink)  
Old Jul 8th, 2005, 09:14
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,953
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
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
Reply With Quote
  #13 (permalink)  
Old Jul 8th, 2005, 10:50
Junior Member
Join Date: Jun 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Ok ... I have edited, and added the .pl script to my cgi bin.

I have used the following script

Quote:
<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">
Yet it still requires the person filling out the form to send the form via email ...

Ugh ...

HELP!
Reply With Quote
  #14 (permalink)  
Old Jul 8th, 2005, 10:53
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #15 (permalink)  
Old Jul 8th, 2005, 10:55
Junior Member
Join Date: Jun 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #16 (permalink)  
Old Jul 8th, 2005, 12:00
Junior Member
Join Date: Jun 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Hrmm ??? I'm still lost
Reply With Quote
  #17 (permalink)  
Old Jul 8th, 2005, 12:25
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
<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!
Reply With Quote
  #18 (permalink)  
Old Jul 9th, 2005, 10:44
Junior Member
Join Date: Jun 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
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 ....
Reply With Quote
  #19 (permalink)  
Old Jul 23rd, 2005, 02:53
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #20 (permalink)  
Old Jul 23rd, 2005, 09:17
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by herkalees
...erm, I just looked around this Reply Box and I don't see a Attachments button.
If you want to show code, simple use code tags eg:
Code: Select all
Here is some code
Reply With Quote
Reply

Tags
adding, form

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 04:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43