an All Creative World site
onegirlcreative's picture
1090 pencils

Need to know how to submit form from website & e-mail me the results

I hope I am describing this correctly.

I have created a form to fill out from my website for clients that I work with remotely and never meet face-to-face. At the bottom of the form, I have them click on a submit button, but I want the results of their form/questionnaire to either be e-mailed to me or somehow be able to retrieve the answers another way.

Obviously, when I try to do a test form, nothing gets e-mailed to me—of course. I am at a loss and don't know how to do this. I'm sure it's just one of those many web issues of dealing with your own website, but I'm hoping there's someone out there who could help me with this dilemma.

Thanks in advance!
Suzanne

Here is the link to my form so you can get an idea of what I'm talking about:

http://www.onegirlcreative.com/questionnaire.htm

P.S. Please no critiques on how it looks, I just want it to function properly. Thanks!

--------
"I am not sick. I am broken. But I am happy as long as I can paint." ~ Frida Kahlo

www.onegirlcreative.com

Commenting on this Forum topic is closed.

smartgrafix's picture
79 pencils

Hi Suzanne, you seem to have at least 2 problems with your form.

1/ Looking at the source of your form page I can see you have split the page into several forms, when you only need one.

2/ Looking at the source at the beginning of the form you need to assign an action like this:
action="somescript.php"
obviously substituting "somescript" for whatever script you are using.
On my site I use form2mail.php. It's easy to set up (instructions are commented in the script) & you can get it free from here:
http://www.web4future.com/easiest-form2mail.htm

Hope this helps
Mark

onegirlcreative's picture
1090 pencils

Thanks Mark for your reply. However, what do you mean it is split up in two forms??? I just have it on one web page, so I don't exactly know what you mean. I'm sorry.

I think I remember you were the one who responded to me regarding this exact issue a long time ago. Maybe a year? I reposted it hoping someone would find the answer for me.

I remember you gave me the link to this exact website, and I thought I did exactly what they suggested, but since I am a total dork when it comes to web design, etc. I didn't know where to exactly put the action="somescript.php".

What do you mean script??? If you want to e-mail me directly, you can. It might be easier that way.

Thanks!

suzanne maestri-walters :: graphic designer :: www.onegirlcreative.com

--------
"I am not sick. I am broken. But I am happy as long as I can paint." ~ Frida Kahlo

www.onegirlcreative.com

smartgrafix's picture
79 pencils

It's hard to show you what to do because you can't include code (for good reason) in this forum. I'd suggest you open the form on my website & go to View>View Source. You'll see that the form area begins before the first question and closes after the Submit function. Yours should do the same.

This is the form beginning & is used only once (Pointy brackets removed):
form name="form" method="post" action=""

& closes & used only once (Pointy brackets removed):
/form

Now to make it work you need it to send the collected data to a script that sends you an email & takes the enquirer to a thank you page. So if you use the script I previously recommended your form would open thus (pointy brackets removed):

form name="form" method="post" action="form2mail.php"

That's it really. Hope I've been clear,
Mark

natobasso's picture
3951 pencils

What you have run into here is the fact that an html form is not complete unless there is some code accompanying it to make it work on the server side, or some code on the front end, usually javascript, that can do that same work.

You have to have a programmer create this code for you if you don't know how. Here's what I do:

1. With the form page built, write C# code that triggers when the 'send' button is clicked.
2. That email has a To and a BCC. That BCC would be set to your email address. The To would be that same message to the respondent, confirming their entries on your form.

I'd recommend you use a form service (there are a few out there) or hire a programmer to get this last part of functionality built into your code.

You could also check www.dynamicdrive.com for javascript code to see if you can get this accomplished that way. They have stock scripts you can use for free as long as you don't remove their 'this code was made by dynamicdrive.com' text that comes in the code.

----
Powerpoint is not a design application

onegirlcreative's picture
1090 pencils

I tried using the code/action script that Mark sent me, but because I don't know what I'm doing, I don't really know what this all means. I was really hoping to submit a questionnaire from a form from my website to look more professional, than just using the questions via e-mail.

I can't afford to pay a programmer, as I imagine it's not cheap. And since I don't know any programmers, I guess I can't ask them to do it for free to help me.

God, this web stuff is cumbersome. Ugh!!!

suzanne maestri-walters :: graphic designer :: www.onegirlcreative.com

--------
"I am not sick. I am broken. But I am happy as long as I can paint." ~ Frida Kahlo

www.onegirlcreative.com

natobasso's picture
3951 pencils

If you have a programmer set up the code for you, it's fairly straightforward. And once it's done you just change the code to reflect the different messages (have the programmer show you) and you are off and running!

Does your server accept asp pages? If so, I can help.

----
Powerpoint is not a design application

onegirlcreative's picture
1090 pencils

Or do you mean the support from my server/domain? Otherwise, where on earth do I find a programmer? Like I said, I can't afford to hire one.

Please explain what asp pages are? I'm sorry to be such a geek, but please when discussing this stuff, tell me in laymen's terms as I don't know much (if anything) about this crap. LOL

Thanks!

suzanne maestri-walters :: graphic designer :: www.onegirlcreative.com

--------
"I am not sick. I am broken. But I am happy as long as I can paint." ~ Frida Kahlo

www.onegirlcreative.com

natobasso's picture
3951 pencils

Ok, do these steps.

Go to your webhost/isp's home page on the web. Look up the services they offer. If they offer ASP 2.0 (Active Server Pages) then I can give you some code I created for a web form that does what you want; it's already done.

In order to get your form to work, it can't just have HTML, it needs something driving it; either javascript (you have that) or asp or there's also php. asp and php are 'server side' which means when you send an instruction from your html page, that instruction is translated/operated/driven by the server side code you supply.

What an asp page spits out is html code to the 'user side' (someone viewing your page) from the 'server side' when you get source for that page, and that's for security purposes.

So basically I'm saying give me your code for your page and in a day or two I can add code to it that will make your form work, as long as the page isn't too foobarred right now. :)

Hope that makes sense.
----
Powerpoint is not a design application

onegirlcreative's picture
1090 pencils

I think that's awesome that you're offering to do that. Would you still be able to do it if I sent you the code that Mark sent me? I can send it to you via e-mail. Let me know and I will send it to you. Thank you, natobasso.

You're very kind.

suzanne maestri-walters :: graphic designer :: www.onegirlcreative.com

--------
"I am not sick. I am broken. But I am happy as long as I can paint." ~ Frida Kahlo

www.onegirlcreative.com

natobasso's picture
3951 pencils

All your page stats here:
http://whois.domaintools.com/onegirlcreative.com

Looks like your website only runs php or unix so I can't help you out with asp. You might be surprised how little it can cost if you network and find a web developer in your area who does php.

----
Powerpoint is not a design application

onegirlcreative's picture
1090 pencils

How weird. My contact information is so outdated. That was like 4 years ago, that address. Weird.

Anyway, Mark from smartgrafix sent me a form with this code and it has the php, but the problem is, I don't understand any of it and I am obviously not putting it in the proper place in my Dreamweaver document.

suzanne maestri-walters :: graphic designer :: www.onegirlcreative.com

--------
"I am not sick. I am broken. But I am happy as long as I can paint." ~ Frida Kahlo

www.onegirlcreative.com

natobasso's picture
3951 pencils

You should probably redo the code placement but don't use dreamweaver, just open your code in TextEdit, or at least have code view and design view open in DW at the same time. Might help make sense of things.

Just reread the post above about the form2mail.php page that it was suggest you create. For your form, the 'action' on the form code should call up this new page= form2mail.php and this is where you paste the second part of the code which is in php, not html.

So in the end you have your html page and on it there's an entire section enclosing your form items called form, and that form has an action code line that points to form2mail.php. That form2mail.php file should be in the same directory as your form html page.

----
Powerpoint is not a design application

onegirlcreative's picture
1090 pencils

And I guess I was confused by the form2mail.php file. Do I need to put that file in my root server? So it can go back there? When I tried putting that form2mail.php in the action script, it didn't recognize it. Maybe because it wasn't on my server???

God, I am so sorry for sounding like such an idiot, but in this case, I am. =P

suzanne maestri-walters :: graphic designer :: www.onegirlcreative.com

--------
"I am not sick. I am broken. But I am happy as long as I can paint." ~ Frida Kahlo

www.onegirlcreative.com

natobasso's picture
3951 pencils

1. Create a page called form2mail.php and paste whatever code you were given for it into it. You have to create the php file, but it's just a text file with .php added to the end of it so you don't even need to use DW to create it.
2. Put it in the same directory as your form. The same folder, that is.

----
Powerpoint is not a design application

KellyR's picture
525 pencils

Online forms are a pain in the butt, in my experience, but they obviously work, and for some people it's an easy puzzle to fit together.

I agree with the others when they said to check with your web site host FIRST (the company that is hosting your web site - meaning the company whose server you upload your HTML files to), and ask them for help in setting up an online form.

They should provide you with some sort of documentation on what their servers will accept and work with, and hopefully let you know where you need to be uploading your forms to and that sort of thing.

From there, I think you'd probably benefit more by checking your Dreamweaver Help menu and seeing what recommendations they have there about building an online form. If they have a tutorial - use it. Otherwise, if you don't have the time to dedicate to figuring it out on your own by utilizing Dreamweaver's manuals, then you really will need to shell out the money to pay someone to set it up for you, or search far and wide for someone who can just do it for you out of the goodness of their heart.

I, personally, can't do it on my own. I'm spoiled and have programmers at my work who assist me with these sort of things.

In any case, using your Dreamweaver Help menu would be the place to go - you'll learn something, too, and it's always great to learn new stuff. :)

designmonkey's picture
98 pencils

I use formtools. (http://www.formtools.org/)

This is an easy alternative way to do what you want to do. Its very reliable and robust. It has easy step by step instructions on how to get it setup and running on your website. Make sure your webhosting supports PHP and SQL though.....it wont work without!

smartgrafix's picture
79 pencils

Thanks for this designmonkey. Been looking for a form method that allows file uploads by visitors, for a client's website. Seen many, but most are a configuration nightmare or cost $'s. Just added FormTools to my site to test & it works so well I'm going to keep it there too. Certainly, it is somewhat more complicated to set up than form2mail (still probably the easiest one for you Suzanne), but it is far more feature rich.

onegirlcreative's picture
1090 pencils

I still haven't had time to try any of these suggestions yet—still trying to play catch up after our mini-vacation.

But after seeing smartgrafix advice, I will DEFINITELY try this. Thanks, designmonkey!!!

suzanne maestri-walters :: graphic designer :: www.onegirlcreative.com

--------
"I am not sick. I am broken. But I am happy as long as I can paint." ~ Frida Kahlo

www.onegirlcreative.com

smartgrafix's picture
79 pencils

sorry Suzanne, perhaps I wasn't clear. I meant Form2Mail is much easier to configure (hence, maybe your best bet) than FormTools. But, FormTools is nicer & has more functionality.
PS: like your new avatar!

onegirlcreative's picture
1090 pencils

Sorry about that, smartgrapfix. I did misunderstand you.

I still need to try your latest suggestion before I left for my trip. I'm anxious to get this up and running properly.

P.S. Thanks for the compliment on my new avatar!!! =P

suzanne maestri-walters :: graphic designer :: www.onegirlcreative.com

--------
"I am not sick. I am broken. But I am happy as long as I can paint." ~ Frida Kahlo

www.onegirlcreative.com

spigot's picture
190 pencils

@onegirlcreative- here is a link to the system I've come to use. There are files included and a semi explanation in the readme file.

http://spigotdesign.com/Chute/filechute/spigotdesign-form-system.zip

Here's an outline:

1. form.php - this file contains the form html I use
2. thanks.php - this is the page the form calls from the "action"
3. checkform.js - js form validation
4. spam.php - server side human-ness question script.

~

onegirlcreative's picture
1090 pencils

We just got back from a mini-vacation in the mountains, so as soon as we get settled in, I will try all of your suggestions. I REALLY, really appreciate the time that you've all taken to recommend these to me.

Thanks!

suzanne maestri-walters :: graphic designer :: www.onegirlcreative.com

--------
"I am not sick. I am broken. But I am happy as long as I can paint." ~ Frida Kahlo

www.onegirlcreative.com

Creativebits is a blog about Creativity, Graphic Design, Adobe, Apple and other related subjects.

Featured Images

Do you need a great new logo?

If you need a logo for your company or product you can get it done with us.
In our logo store you can pick from over 28,000 pre-made logos that will be customized to your name for free or you can post a contest for us for just $250 and our designers from all over the world will submit dozens of logo design suggestions to your specific needs.

Marketplace