Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
tomyam is on a distinguished road
 
Posts: 4
Join Date: May 2012
Default DW, Form, Action field - 05-08-2012, 06:13 PM

Hi, I am taking DreamWeaver class now and I have a question about what to fill in Action field when creating a form. My instructor told me that I need to contact my hosting provider.
According to my text book, "The Action field allows you to specify the program, often, a Common Gateway Interface script, that processes the user's form data. You can type in the path to this program. In most cases, you'll need to get this information from your hosting provider.

Please help

Thank you.
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Leder678's Avatar
Senior Member
Leder678 is on a distinguished road
 
Posts: 1,615
Join Date: Jan 2009
Location: Norway
Send a message via MSN to Leder678
Default 05-08-2012, 06:17 PM

the action field should be the script file you made that processes the submitted form.

http://www.w3schools.com/php/php_forms.asp
http://www.w3schools.com/php/php_post.asp
http://www.w3schools.com/php/php_get.asp

However, CGI isn't enabled on the free host, if that's what you are using.


Follow me on twitter @Mortenrb

W3Fools - Read and learn

Please AT LEAST read the 10 bolded lines of the TOS at:
http://www.000webhost.com/includes/tos.php

Last edited by Leder678; 05-08-2012 at 06:24 PM.
Reply With Quote
(#3 (permalink))
Old
Junior Member
tomyam is on a distinguished road
 
Posts: 4
Join Date: May 2012
Default 05-08-2012, 07:31 PM

Mmm, I don't know if I'm using PHP.

Here's my coding.

<form action="" method="post" enctype="application/x-www-form-urlencoded" name="contact" id="contact">
<p>Your Name:
<label for="Mailing_list_name"></label>
<input name="Mailing_list_name" type="text" id="Mailing_list_name" size="55" maxlength="35" />
<br />
<br />
Your Email:
<label for="Mailing_list_email"></label>
<input name="Mailing_list_email" type="text" id="Mailing_list_email" size="55" maxlength="55" />
<br />
<br />
Inquiry: <br />
<label>
<textarea name="Inquiry" id="Inquiry" cols="58" rows="5"></textarea>
</label></p>
<p>
<input type="submit" name="Submit" id="Submit" value="Submit" />
<input type="reset" name="Reset" id="Reset" value="Reset" />
&nbsp; </p>

</form>

My question is , with this coding, how can I retrieve information that inputted in the field?? I really appreciate your help!
Reply With Quote
(#4 (permalink))
Old
Leder678's Avatar
Senior Member
Leder678 is on a distinguished road
 
Posts: 1,615
Join Date: Jan 2009
Location: Norway
Send a message via MSN to Leder678
Default 05-08-2012, 07:53 PM

That is pure HTML.

You need to create a script in PHP (if you are going to use this host), Ruby, ASP etc. that handles the form.

The action="" should be the path to the script that handles the form, e.g. <form action="post.php" method="post">

Then you need a file named post.php, inside this file, you should use the information from the form for whatever you want, I linked to some w3schools tutorials in my previous reply.


Follow me on twitter @Mortenrb

W3Fools - Read and learn

Please AT LEAST read the 10 bolded lines of the TOS at:
http://www.000webhost.com/includes/tos.php
Reply With Quote
Reply

Tags
action field, cgi, dreamweaber, form

Thread Tools
Display Modes

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




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com