Go Back  Bike Forums > The Lounge > Foo
Reload this Page >

setting up a form in dreamweaver

Foo Off-Topic chit chat with no general subject.

setting up a form in dreamweaver

Old 02-22-05, 07:57 PM
  #1  
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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
phantomcow2 is offline  
Old 02-22-05, 07:59 PM
  #2  
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Posts: 16,966

Bikes: Trek Fuel EX 8 27.5 +, 2002 Transition Dirtbag, Kona Roast 2002

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 23 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
What server sided scripting language are you using to process the info?
Maelstrom is offline  
Old 02-22-05, 08:14 PM
  #3  
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
holy crap that confused me so much i dont think im going to bother with a form.
phantomcow2 is offline  
Old 02-22-05, 08:35 PM
  #4  
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Posts: 16,966

Bikes: Trek Fuel EX 8 27.5 +, 2002 Transition Dirtbag, Kona Roast 2002

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 23 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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
Maelstrom is offline  
Old 02-22-05, 08:45 PM
  #5  
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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.
phantomcow2 is offline  
Old 02-22-05, 09:16 PM
  #6  
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Posts: 16,966

Bikes: Trek Fuel EX 8 27.5 +, 2002 Transition Dirtbag, Kona Roast 2002

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 23 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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.
Maelstrom is offline  
Old 02-22-05, 09:20 PM
  #7  
way124
Still Newbie
 
way124's Avatar
 
Join Date: Nov 2003
Location: Guelph, ON
Posts: 237

Bikes: A 1992 Norco road bike

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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...
way124 is offline  
Old 02-22-05, 09:28 PM
  #8  
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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
phantomcow2 is offline  
Old 02-22-05, 10:13 PM
  #9  
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Posts: 16,966

Bikes: Trek Fuel EX 8 27.5 +, 2002 Transition Dirtbag, Kona Roast 2002

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 23 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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 )
Maelstrom is offline  
Old 02-22-05, 10:18 PM
  #10  
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
actually its only 4 entries. So that would not be overly difficult to achieve then?
phantomcow2 is offline  
Old 02-22-05, 10:31 PM
  #11  
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Posts: 16,966

Bikes: Trek Fuel EX 8 27.5 +, 2002 Transition Dirtbag, Kona Roast 2002

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 23 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
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.
Maelstrom is offline  
Old 02-22-05, 10:39 PM
  #12  
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Posts: 16,966

Bikes: Trek Fuel EX 8 27.5 +, 2002 Transition Dirtbag, Kona Roast 2002

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 23 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
[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.
Maelstrom is offline  
Old 02-23-05, 10:27 AM
  #13  
jfmckenna
Tiocfáidh ár Lá
 
jfmckenna's Avatar
 
Join Date: Dec 2003
Location: The edge of b#
Posts: 5,445

Bikes: A whole bunch-a bikes.

Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Quoted: 264 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
You might want to make sure you can even use php first.
jfmckenna is offline  
Old 02-23-05, 05:05 PM
  #14  
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
lol php looses me. Im gonna get my friend a starbucks and have him do it
phantomcow2 is offline  

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


Thread Tools
Search this Thread

Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.