PDA

View Full Version : Form field retieval help


Marlboro_Man
08-13-2000, 02:47 AM
Hello,

I am trying to creat an order form for my home page, to solicit Name, Address, etc, from users.
I am doing the following. Please tell me where I went wrong as the info doesn't transmit and the email pops up for the user to see.
FORM METHOD="POST" ACTION=mailto:wesny@aol.com?subject="Order"
INPUT NAME="FNAME" TYPE="TEXT" SIZE="15" MAXLENGTH="30"
INPUT TYPE="SUBMIT" VALUE="Place Order"
I know the fields are supposed to be enclosed in greater/less than brackets, I changed to submit the info here.

Jacob
08-13-2000, 02:56 AM
Hiya,

Here's an example form, that can be submitted via Email:

<BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre>
&lt;FORM METHOD="POST" ENCTYPE="text/plain"
action='mailto:your@email.com'&gt;
&lt;INPUT type="hidden" name="Type of Form" value="Order Form"&gt;
&lt;B&gt;Your Name&lt;/B&gt;
&lt;BR&gt;&lt;INPUT type="text" name="Name" SIZE="50" MAXLENGTH="50"&gt;
&lt;BR&gt;&lt;B&gt;Your Email:&lt;/B&gt;
&lt;BR&gt;&lt;INPUT type="text" name="Email" SIZE="50" MAXLENGTH="50"&gt;
&lt;BR&gt;&lt;B&gt;Your Comment:&lt;/B&gt;
&lt;BR&gt;&lt;TEXTAREA name="Comment" wrap=physical rows=7 cols=43&gt;&lt;/TEXTAREA&gt;
&lt;BR&gt;&lt;INPUT type="submit" VALUE="Send Form"&gt;&lt;INPUT type="reset" Value="Reset Form"&gt;&lt;/FORM&gt;
[/code]

Regards,

------------------
Jacob A. Wheeler
Co-Founder / Web Engineer
Big Resources Network
jacob@bigresources.com
ICQ: 390147 (http://www.icq.com/390147)

Marlboro_Man
08-13-2000, 03:15 AM
Dear Jacob,

I thank you for your quick reply and help.

I copied the code you supplied, put in action, and found the same problems exist

1. no info included in email
2. email shown to end user

Please advise further

Marlboro_Man
08-13-2000, 03:20 AM
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Marlboro_Man:
Dear Jacob,

I thank you for your quick reply and help.

I copied the code you supplied, put in action, and found the same problems exist

1. no info included in email
2. email shown to end user

does it have anything to do with:
mailto:wesny@aol.com?subject="order"
can I add to this string, something like:
?text="form" or "Fname","LNAME"

or something like this?

Please advise further<HR></BLOCKQUOTE>

Jacob
08-13-2000, 03:31 AM
Ok,

I think I'm a little confused now, on what exactly you are trying to accomplish with this form.

NOTE: This type of form submission (via email) will pop-up the users email client to send the email. As this form of form submission is client-side (which means everything is processed on the users side, vs. server side, which would use cgi/php/ etc...)

Also, the only variable you can pass through the form action field is a subject.

Like this:
mailto:wesny@aol.com?subject="order"

All other information is taken from input fields elsewhere in the form, and placed into the "Body" of the email message.

If you could please clarify exactly what your trying to do, that would be great.

Regards,




------------------
Jacob A. Wheeler
Co-Founder / Web Engineer
Big Resources Network
jacob@bigresources.com
ICQ: 390147 (http://www.icq.com/390147)

Marlboro_Man
08-13-2000, 04:12 AM
hello again,

I am trying to retrieve info from my users.
here is the URL: http://members.aol.com/wesny/order.html
or is also at: http://hometown.aol.com/wesny/myhomepage/order.html

The page is in AOL's Hometown section. Does that have anything to do with the problems?
Do I need to and How difficult is it to implement the CGI to allow for the client to not see the email? I really would like to not have the users have to click a email submit button after clicking the place order button.
Also, how do I redirect them to a 'Thank You' page when they submit their order?

Thaks again for the help. Hope I'm not a pain in the butt.
Wes Evans

Jacob
08-13-2000, 05:00 AM
Ok,

I see what your tring to do.

For what your want to do, using a form action mailto tag will not do the trick. What your going to want is a remotely hosted cgi-script to do your form processing, and redirection functions.

Here ya go: http://www.123webmaster.com/Scripts/Remotely_Hosted/Extras/Forms/

They are fairly simple to setup too.

Regards,

------------------
Jacob A. Wheeler
Co-Founder / Web Engineer
Big Resources Network
jacob@bigresources.com
ICQ: 390147 (http://www.icq.com/390147)