View Full Version : Form Help


jen-angel
07-19-2003, 05:09 AM
I typed up this hosting form for my domain and it DOESNT work:(
what am I doing wrong?
my code is:


<html>
<head>
<title>Untitled Document</title>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="http://splash3d.org/cgi-sys/FormMail.cgi">
<p>name:
<input type="text" name="textfield">
<br>
email:
<input type="text" name="textfield2">
<br>
site type:
<input type="text" name="textfield3">
<br>
site name:
<input type="text" name="textfield4">
<br>
url:
<input type="text" name="textfield5">
<br>
can you ftp:
<input type="text" name="textfield6">
<br>
ftp username:
<input type="text" name="textfield7">
<br>
ftp password:
<input type="text" name="textfield8">
<br>
splash3d.org email type:
<input type="radio" name="radiobutton" value="radiobutton">
pop3
<input type="radio" name="radiobutton" value="radiobutton">
forwarder
<input type="radio" name="radiobutton" value="radiobutton">
webmail<br>
email username:
<input type="text" name="textfield9">
<br>
email password (pop3/webmail)
<input type="text" name="textfield10">
<br>
email for forwarder:
<input type="text" name="textfield11">
<br>
do you need a mysql database?
<input type="text" name="textfield12">
<br>
database name:
<input type="text" name="textfield13">
<br>
database username:
<input type="text" name="textfield14">
<br>
database password:
<input type="text" name="textfield15">
<br>
so i know you read the rules, who is my fave lord of the rings character?:
<select name="select">
<option>click to choose</option>
<option>aragorn</option>
<option>arwen</option>
<option>frodo</option>
<option>gandalf</option>
<option>gimli</option>
<option>gollum</option>
<option>legolas</option>
<option>merry</option>
<option>pippin</option>
<option>sam</option>
</select>
</p>
</form>
</body>
</html>

ya_whatever
07-19-2003, 05:20 AM
I don't claim to be some html master, but reading over your html, I think something is wrong with your textboxes. The basic html is:
<input type="text" name="name of your textbox MUST INCLUDE" size="15" maxlength="20">
The "text" part must stay the same, but all the other things in "s can be changed.

ya_whatever
07-19-2003, 05:27 AM
And a couple more things...

1. If you want the contents to be sent to you, you should use the following:
<form action="mailto:you@address.com" method="POST" enctype="text/plain">

2. At the end, for a Submit button, you should put:
<input type="submit" value="Submit Info!">

3. If you have been deleting the " "s, don't.

4. I have absolutely no idea if this will work on anything other than Internet Explorer, but try it even if you don't have IE, just for the chance that it might work.

Before you try anything else, I would put the <body> and </body> tags in there!!

jen-angel
07-19-2003, 06:03 AM
ya_whatever,
I did what you said, and when i click send, it opens my outlook express program and has a blank email to be sent to my email address i defined in the form:(
but before the outlook express opens it has a popup. it says
This form is being submitted by the use of e-mail. Submitting this form will reveal your e-mail address to the recipient, and will send the form data without encrypting it for privacy. You may continue or cancel this submission.

when i continue OE opens when i don't nothing happens:( what do I do?

YellowSnow
07-19-2003, 01:35 PM
using
<form action="mailto:you@address.com" method="POST" enctype="text/plain">

the mailto: opens up outlook at everything falls apart from there haha =)

is there a way I get a form sent to my email without using the mailto: command?

pb&j
07-19-2003, 01:52 PM
using MAILTO is very unsupported in browsers as you have discovered. the original question post had the information going to a Perl/CGI processing script which then goes to the persons email box (which was the correct thing to do in the first place).

if i may presume, the (original) problem at hand was the information was not being sent to your inbox? if so, there is probably a problem with the FormMail script. does an error appear at all? was the FormMail script installed by you or your host?

i agree on having the SUBMIT button being added. that is how the form knows when to send the information to the specified processing script.

jen-angel
07-19-2003, 11:07 PM
it was uploaded by ftp by me. it isnt a script. i HAND wrote it

Dude128
07-20-2003, 01:52 AM
well generally, someone has to write scripts. they don't usually appear out of nowhere.

in your first post, your form uses a CGI script (which is a script- no matter who wrote it) to process the form. pb&j was asking if that was the problem, that it wasn't being sent to your inbox.

jen-angel
07-20-2003, 02:31 AM
then someone on nova told me to generate it at a site....the form is uploaded at http://splash3d.org/domain/hosting.php