Click to See Complete Forum and Search --> : dreamweaver form submit queastion


waffleman
09-15-2005, 02:20 PM
Im making a website using dreamweaver. On the site i have a form made up but i have no idea how to know where the form is sent once the submit button is clicked. I know this is a total noob Q but oh well...
Is there some way I can just have it submit the form to an email account?
thanks ahead

Sunday Ironfoot
09-23-2005, 08:46 AM
You'll need to learn some dynamic server-side programming technology like ASP, ASP.net, PHP, JSP etc. The idea is that the form is submitted to the server then the program running on the server grabs the info then does something with it, like put it in a database or email it somewhere. There's plenty of ready bake scripts in the technologies mentioned above to do this on the net (google it), although the web server hosting your webpage will need to support these as well. Ie. if you have a PHP script that emails the form submitted data, your web host would need to support PHP and have an SMTP or other email server running (they usually do).

rock
09-23-2005, 04:20 PM
You can use Javascript to email a form. This is much easier than server-side scripting, but not quite as fancy or secure.

Here's an example:
<form action="mailto:you@yourdmainhere.com" method="post" enctype="text/plain" >
FirstName:<input type="text" name="FirstName">
Email:<input type="text" name="Email">
<input type="submit" name="submit" value="Submit">
</form>

This came form a quick Google of "javascript submit email" and specifically this page (http://www.javascript-coder.com/javascript-form/javascript-email-form.phtml)

Strogian
09-26-2005, 09:43 PM
Wouldn't that need all user's web browsers to be configured with a mail server?

rock
09-27-2005, 07:45 AM
Not at all. The server just needs to handle the regular html "mailto" tag. Remember, you press submit on your browser, but the server is doing all the processing.

waffleman
09-29-2005, 05:49 PM
Rock for now I think this will work awesome, theres no personal info shared on the form so security isnt a big issue. Thanks for the tip