Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Form Help In Dreamweaver
Old 11-20-2005, 06:37 PM Form Help In Dreamweaver
Average Talker

Posts: 29
Name: John
Location: Delaware
Trades: 0
I'm trying to make a simple form in dreamweaver 8. I have no idea how this works and can't find anything in the Dreamweaver help.

All I need to know is how get the information sent to the server and how to get the information.

I've tried adding all the fields in a form and creating a submit button but the submit button acts as an input. Shouldn't it use a get method?

THANKS FOR ANY HELP
turtile is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-20-2005, 07:02 PM
madkad's Avatar
madkad-hosting.com

Posts: 310
Location: UK
Trades: 0
you would have to also use a code like php to get it to work

when you say server do you meen database

if so then you would need somthing likea id in the database say the id was a username you would have to have a field were you add the user name and click the submit button then your php script would select from table were (username) then you would have to get it so it selects what info you want it to so say it was the usernames address email etc etc

the page you went to would have somthing in php like select from table were (username) then the string of stuff you want to collect then in the page you would use echo or print (both do the same) and you would show all the info that you have collected

if that was what you wanted to no i hope that helped
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Great Hosting For You
madkad is offline
Reply With Quote
View Public Profile Visit madkad's homepage!
 
Old 11-21-2005, 03:47 AM
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
IF you're talking about just transfering data entered in a form over to create a dynamic page you will need a form like this:

HTML Code:
<form name="test" method="post" action="examplepage.php">
<input type="text" name="username" size="25" maxlength="25">
<input type="submit" name="submit" value="Submit">
</form>
obviously you would want to have text and a layout for this but basically upon hitting Submit, you will be sent to examplepage.php where you can extract the data from your input field with something like this:

PHP Code:
<html>
<body>

Hello

<?php> print $_POST['username']; ?> //print out the variable username that was posted from the previous site

</body>
<html>
PHP is fairly simple with small things like this...even saved as a .php file will be recognized as html except what commands fall between <?php and ?>. Hope this helps.
__________________
The worst things in life allow us to appreciate the best things

virtual kudos (a.k.a. talkupation) always welcome where deserved.
Nahele is offline
Reply With Quote
View Public Profile
 
Old 11-21-2005, 07:33 AM Are you looking for form mail?
JohnJ's Avatar
Extreme Talker

Posts: 198
Location: Raleigh, NC
Trades: 0
Quote:
Originally Posted by turtile
I'm trying to make a simple form in dreamweaver 8. I have no idea how this works and can't find anything in the Dreamweaver help.

All I need to know is how get the information sent to the server and how to get the information.

I've tried adding all the fields in a form and creating a submit button but the submit button acts as an input. Shouldn't it use a get method?

THANKS FOR ANY HELP
It's not clear to me if you are looking for form mail or to interact with a database.

If it's form mail you should start by talking with your host.....

The form you build will need to call a script on the host server - the script will actually do all the work for you. Many hosts provide a 'canned script' that you can use to interact with their mail program. Otherwise you should consider using 'Matt's Script' at http://www.scriptarchive.com/formmail.html

JohnJ
__________________
JohnJ

Please login or register to view this content. Registration is FREE

WebImages Inc. - Raleigh NC
JohnJ is offline
Reply With Quote
View Public Profile Visit JohnJ's homepage!
 
Old 11-21-2005, 11:27 AM
Average Talker

Posts: 29
Name: John
Location: Delaware
Trades: 0
I don't want it to post. I want to be the only one to see it.

I'm working on this site and on the contact page the person wants a form that will let him collect someones information for a job. (address, phone number...)

I am also using bluehost.com as my web provider.

Thanks
turtile is offline
Reply With Quote
View Public Profile
 
Old 11-21-2005, 01:49 PM
madkad's Avatar
madkad-hosting.com

Posts: 310
Location: UK
Trades: 0
well if you dont want it to post the only other way to do it is have it colected in the database useing a script like php

or you could have it emailed to the owner of the website this i would also use a php script
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Great Hosting For You
madkad is offline
Reply With Quote
View Public Profile Visit madkad's homepage!
 
Old 11-21-2005, 01:58 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
If you just want any form submissions turn up in your inbox you can set the action attribute of the form to a mailto: link:

HTML Code:
<form method="POST" action="mailto:you@yourdomain.com">
<input type="text" name="numberofbananas" value="348" />
<input type="submit" name="submit" value="Request bananas NOW!" />
</form>
This is very basic, but it requires no serverside scripting. If you want to do database stuff, or format the output a different way then you'll need something like PHP, ASP.NET, PERL or similar.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 11-21-2005, 02:19 PM
Average Talker

Posts: 29
Name: John
Location: Delaware
Trades: 0
I guess I'll try that then.
Thanks
turtile is offline
Reply With Quote
View Public Profile
 
Old 11-21-2005, 02:39 PM
madkad's Avatar
madkad-hosting.com

Posts: 310
Location: UK
Trades: 0
Quote:
Originally Posted by 0beron
If you just want any form submissions turn up in your inbox you can set the action attribute of the form to a mailto: link:

HTML Code:
<form method="POST" action="mailto:you@yourdomain.com">
<input type="text" name="numberofbananas" value="348" />
<input type="submit" name="submit" value="Request bananas NOW!" />
</form>
This is very basic, but it requires no serverside scripting. If you want to do database stuff, or format the output a different way then you'll need something like PHP, ASP.NET, PERL or similar.
LOL i always get a warning from my browser when i try a code that way
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Great Hosting For You
madkad is offline
Reply With Quote
View Public Profile Visit madkad's homepage!
 
Old 11-21-2005, 02:54 PM
Average Talker

Posts: 29
Name: John
Location: Delaware
Trades: 0
I created the email account and setup.
Now I get this error.

Not Found
The requested URL /contactus@djcraigandco.com was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.34 Server at www.djcraigandco.com Port 80
turtile is offline
Reply With Quote
View Public Profile
 
Old 11-21-2005, 03:02 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
you forgot the "mailto:" in the action parameter. It should be:

<form method="POST" action="mailto:contactus@djcraigandco.com">

NOT

<form method="POST" action="contactus@djcraigandco.com">

Last edited by funkdaddu; 11-21-2005 at 03:05 PM..
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 11-21-2005, 03:11 PM
Average Talker

Posts: 29
Name: John
Location: Delaware
Trades: 0
It worked!!!
turtile is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Form Help In Dreamweaver
 

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.45453 seconds with 12 queries