Cycling and bicycle discussion forums. 
   Click here to join our community Log in to access your Control Panel  


Go Back   > >

Foo Off-Topic chit chat with no general subject.

User Tag List

Reply
 
Thread Tools Search this Thread
Old 02-22-05, 07:57 PM   #1
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Bikes:
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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
phantomcow2 is offline   Reply With Quote
Old 02-22-05, 07:59 PM   #2
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Bikes: Transition Dirtbag, Kona Roast 2002 and specialized BMX
Posts: 16,885
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
What server sided scripting language are you using to process the info?
Maelstrom is offline   Reply With Quote
Old 02-22-05, 08:14 PM   #3
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Bikes:
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
holy crap that confused me so much i dont think im going to bother with a form.
phantomcow2 is offline   Reply With Quote
Old 02-22-05, 08:35 PM   #4
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Bikes: Transition Dirtbag, Kona Roast 2002 and specialized BMX
Posts: 16,885
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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
Maelstrom is offline   Reply With Quote
Old 02-22-05, 08:45 PM   #5
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Bikes:
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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.
phantomcow2 is offline   Reply With Quote
Old 02-22-05, 09:16 PM   #6
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Bikes: Transition Dirtbag, Kona Roast 2002 and specialized BMX
Posts: 16,885
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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.
Maelstrom is offline   Reply With Quote
Old 02-22-05, 09:20 PM   #7
way124
Still Newbie
 
way124's Avatar
 
Join Date: Nov 2003
Location: Guelph, ON
Bikes: A 1992 Norco road bike
Posts: 237
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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...
way124 is offline   Reply With Quote
Old 02-22-05, 09:28 PM   #8
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Bikes:
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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
phantomcow2 is offline   Reply With Quote
Old 02-22-05, 10:13 PM   #9
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Bikes: Transition Dirtbag, Kona Roast 2002 and specialized BMX
Posts: 16,885
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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 )
Maelstrom is offline   Reply With Quote
Old 02-22-05, 10:18 PM   #10
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Bikes:
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
actually its only 4 entries. So that would not be overly difficult to achieve then?
phantomcow2 is offline   Reply With Quote
Old 02-22-05, 10:31 PM   #11
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Bikes: Transition Dirtbag, Kona Roast 2002 and specialized BMX
Posts: 16,885
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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.
Maelstrom is offline   Reply With Quote
Old 02-22-05, 10:39 PM   #12
Maelstrom 
Wood Licker
 
Maelstrom's Avatar
 
Join Date: Apr 2002
Location: Whistler,BC
Bikes: Transition Dirtbag, Kona Roast 2002 and specialized BMX
Posts: 16,885
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(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.
Maelstrom is offline   Reply With Quote
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#
Bikes: A whole bunch-a bikes.
Posts: 5,438
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 2 Post(s)
You might want to make sure you can even use php first.
jfmckenna is offline   Reply With Quote
Old 02-23-05, 05:05 PM   #14
phantomcow2
la vache fantôme
Thread Starter
 
phantomcow2's Avatar
 
Join Date: Aug 2004
Location: NH
Bikes:
Posts: 6,266
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
lol php looses me. Im gonna get my friend a starbucks and have him do it
phantomcow2 is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



All times are GMT -6. The time now is 06:20 AM.