Advertise on Bikeforums.net



User Tag List

Results 1 to 14 of 14
  1. #1
    la vache fantôme phantomcow2's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    6,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    setting up a form in dreamweaver

    How i set up a form in dreamweaver? I have all of the text boxes i want, but its the submit i cant get. I want people to be able to click submit and have the information sent right to my email. Please help

  2. #2
    Wood Licker Maelstrom's Avatar
    Join Date
    Apr 2002
    Location
    Whistler,BC
    My Bikes
    Transition Dirtbag, Kona Roast 2002 and specialized BMX
    Posts
    16,888
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What server sided scripting language are you using to process the info?

  3. #3
    la vache fantôme phantomcow2's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    6,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    holy crap that confused me so much i dont think im going to bother with a form.

  4. #4
    Wood Licker Maelstrom's Avatar
    Join Date
    Apr 2002
    Location
    Whistler,BC
    My Bikes
    Transition Dirtbag, Kona Roast 2002 and specialized BMX
    Posts
    16,888
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dreamweaver (last time I used it) makes the front end. The form won't do diddly if you don't have some sort of script to process the form into an email

  5. #5
    la vache fantôme phantomcow2's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    6,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im pretty tech savvy with a computer (built many on my own) but for some reason the internet HTML scrips and stuff of the like looses me.

  6. #6
    Wood Licker Maelstrom's Avatar
    Join Date
    Apr 2002
    Location
    Whistler,BC
    My Bikes
    Transition Dirtbag, Kona Roast 2002 and specialized BMX
    Posts
    16,888
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What you are doing is pretty simple. It would be a very short php backend script. www.sitepoint.com will have a tutorial on building a script to process forms. Try www.w3schools.com too.

  7. #7
    Still Newbie way124's Avatar
    Join Date
    Nov 2003
    Location
    Guelph, ON
    My Bikes
    A 1992 Norco road bike
    Posts
    237
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you mean this http://www.mcli.dist.maricopa.edu/tut/tut28b.html Basically this bit:

    <form method="post" action="mailto:me@myemail.bigu.edu">

    This only works only when the user has something like Outlook. Of course this doesn't quite make sense to use because

    1. Not everyone uses Outlook kind of program to email.
    2. Not many want to expose their email to you.
    3. You think you hid your email from spammers. Nope.
    4. The result isn't quite readable.

    So yeah, you're better off having a server-side script to process the data for you. Which will be another topic if you don't know any of them...

  8. #8
    la vache fantôme phantomcow2's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    6,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well its not really a matter of hiding my email from spammers. I just think it looks more professional. PHP and scripts lose me, i think i might bribe a friend into doing it

  9. #9
    Wood Licker Maelstrom's Avatar
    Join Date
    Apr 2002
    Location
    Whistler,BC
    My Bikes
    Transition Dirtbag, Kona Roast 2002 and specialized BMX
    Posts
    16,888
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thats a rough way of doing it as you don't control the output. (its pretty raw, I haven't used that method in ages)

    If your form is only 5 or 6 entries in reality this script can be written in a few minutes by a reasonable scripter. (basically 1 or 2 beers )

  10. #10
    la vache fantôme phantomcow2's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    6,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    actually its only 4 entries. So that would not be overly difficult to achieve then?

  11. #11
    Wood Licker Maelstrom's Avatar
    Join Date
    Apr 2002
    Location
    Whistler,BC
    My Bikes
    Transition Dirtbag, Kona Roast 2002 and specialized BMX
    Posts
    16,888
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No its really simple. You would create a "action" to a small php file (hoping the server has php). The php file would rewrite the transmitted data into whatever format you want and then use the mail function to mail you. With 4 entries and you having done the front page it should take him 10 minutes to write (not even enough time to finish a beer)

    If the server doesn't have php you need to find out what scripting language you can use.

  12. #12
    Wood Licker Maelstrom's Avatar
    Join Date
    Apr 2002
    Location
    Whistler,BC
    My Bikes
    Transition Dirtbag, Kona Roast 2002 and specialized BMX
    Posts
    16,888
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [script]
    <?php
    //
    //using GET method because I like to have urls to copy blah blah
    //GET is how an html form transmits data (or POST)
    //
    $message="
    <table>
    <tr>
    <td>Name</td>
    <td>".$_GET["name"]."</td>
    </tr>
    <tr>
    <td>age</td>
    <td>".$_GET["age"]."</td>
    </tr>
    <tr>
    <td>Hobby</td>
    <td>".$_GET["hobby"]."</td>
    </tr>
    <tr>
    <td>Gender</td>
    <td>".$_GET["gender"]."</td>
    </tr>
    </table>
    ";

    $to = 'your addy goes here';
    $subject = 'place subject here';
    $headers = 'From:bob@home.com"\r\n" .
    'Reply-To:bob@home.com\r\n" .
    'X-Mailer: PHP/' . phpversion();

    mail($to, $subject, $message, $headers);
    ?>
    [end_script]

    Keep in mind there is no data checking and this will email anything and everything inputted. I also didn't put in any fault checks. I just don't have the energy to bother. (heck I don't even know if the code will show up when vbulleting strips it)

    All I did was move over the 'show' html into a variable and use that variable to email to whoever you want. Quick and dirty but something like it would do what you want.

  13. #13
    Tiocfáidh ár Lá jfmckenna's Avatar
    Join Date
    Dec 2003
    Location
    The edge of b#
    My Bikes
    A whole bunch-a bikes.
    Posts
    5,414
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    You might want to make sure you can even use php first.

  14. #14
    la vache fantôme phantomcow2's Avatar
    Join Date
    Aug 2004
    Location
    NH
    Posts
    6,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol php looses me. Im gonna get my friend a starbucks and have him do it

Posting Permissions

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