dreamweaver form submit queastion

Sharky Forums


Results 1 to 6 of 6

Thread: dreamweaver form submit queastion

  1. #1
    Catfish waffleman's Avatar
    Join Date
    May 2003
    Location
    In your fridge! go check, im there now...go on!
    Posts
    102

    dreamweaver form submit queastion

    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
    If im not back in five minutes, wait longer

  2. #2
    Hammerhead Shark Sunday Ironfoot's Avatar
    Join Date
    May 2001
    Location
    Dundee, Scotland
    Posts
    1,127
    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).
    Sunday Ironfoot

    Main Rig: Athlon X2 3800 (2.6Ghz) | 1024MB DDR400 (DC) | Asus A8N32 SLI (nForce4 x16) | 2x 160GB Maxtor SATA HDD (RAID 0) | Radeon X1900XT | SB Audigy 2 ZS | Gigaworks S750 7.1 Speakers | OS: Windows XP x64 | Software: Visual Studio 2005, Half-life 2 EP: 1

  3. #3
    NullPointerException rock's Avatar
    Join Date
    Sep 2000
    Location
    York, PA
    Posts
    6,203
    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:
    Code:
    <form action="mailto:[email protected]" 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

    Open Source is free like a puppy is free.

    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.

    Understanding Evolution

  4. #4
    Hammerhead Shark
    Join Date
    Feb 2001
    Posts
    1,612
    Wouldn't that need all user's web browsers to be configured with a mail server?

  5. #5
    NullPointerException rock's Avatar
    Join Date
    Sep 2000
    Location
    York, PA
    Posts
    6,203
    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.

    Open Source is free like a puppy is free.

    It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.

    Understanding Evolution

  6. #6
    Catfish waffleman's Avatar
    Join Date
    May 2003
    Location
    In your fridge! go check, im there now...go on!
    Posts
    102
    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
    If im not back in five minutes, wait longer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •