Form doesn't work properly

liunx

Guest
The following is the form I set up for the website, but it doesn't send me the information properly. No comments come through, for example. What is wrong?<br />
<br />
<CENTER><br />
<IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"contacthdr.jpg" WIDTH=525 HEIGHT=80 BORDER=0 ALT="First National University Contacts"><br />
</CENTER><br />
<P><br />
<br><br />
<!--#include virtual="/csIncludes/CSIncludes.cgi?id=Babilfish"--> <br />
<br><br />
<BR><br />
<br />
<body><br />
<br />
<br />
<fieldset><br />
<legend><br />
Contact Information:<br />
</legend><br />
<form action="MAILTO:[email protected]" method="post" enctype="text/plain"><br />
<pre><br />
<br />
First Name: <input type="text" name="firstname"size="20"> Last Name: <input type="text" name="lastname"size="20"> Profession: <select name="Profession"><br />
<option value="M.D.">M.D.<br />
<option value="D.O.">D.O.<br />
<option value="Nurse">Nurse<br />
<option value="E.M.T.">E.M.T.<br />
<option value="Paramedic">Paramedic<br />
<option value="Other" selected>Other<br />
</select><br />
<br><br />
EMail: <input type="text" name="email"size="20"> Address: <input type="text" name="mail"size="20"><br />
<br><br />
City: <input type="text" name="city"size="20"> State: <input type="text" name="state"size="20"> Zip Code: <input type="text" name="zipcode"size="20"><br />
<br><br />
</pre><br />
Comment or Question:<BR><br />
<center><br />
<textarea rows="10" cols="50"><br />
</textarea><br />
</center><br />
<br><br><br />
<br />
<center><br />
<input type="submit" value="Send"> <input type="reset" value="Reset"><br />
</center><br />
<br />
</form><br />
</fieldset><!--content-->Do you have SSI enabled on the web server? And second of all, the file extension for the HTML page matters. SSI HTML pages should end in .shtm or .shtml.<br />
<br />
The other thing to look for is to make sure the file path to the included file is correct. Having /csIncludes/CSIncludes.cgi?id=Babilfish will cause browsers to look at the web site root, or web site home directory, and then csIncludes/CSIncludes.cgi (if you already know this, my apologies). If your web server is a Unix server, file names and paths are case sensitive. Also make sure you have the proper permissions set for the CGI file. On Unix/Linux servers, it should be something like RWXR-XR-X.<!--content-->...mailto forms are fickle at best, but if you're not getting "Comments", try naming the textarea to name="comments" or something similar...this will associate a name/value pair for the query string, thus sending the info along with the other inputs<br />
<br />
I'm assuming the other inputs are working??<br />
...also, to avoid confusion, you should separate the name of your inputs and size with a space<br />
<br />
<input type="text" name="zipcode"size="20"><br />
with space:<br />
<input type="text" name="zipcode" size="20"><!--content-->Thanks toicontien <br />
<br />
Yes, everything is set up for serversides and cgi scripts and permissions are there for the scripts.<!--content-->Originally posted by CyCo <br />
...mailto forms are fickle at best, but if you're not getting "Comments", try naming the textarea to name="comments" or something similar...this will associate a name/value pair for the query string, thus sending the info along with the other inputs<br />
<br />
I'm assuming the other inputs are working??<br />
...also, to avoid confusion, you should separate the name of your inputs and size with a space<br />
<br />
<input type="text" name="zipcode"size="20"><br />
with space:<br />
<input type="text" name="zipcode" size="20"> <br />
<br />
I thought it was sending the form, but it isn't. <br />
<br />
It sends to the email program, but there is nothing in the subject or message.<br />
<br />
I made the changes you mentioned, I think. Any other ideas on why this isn't working?<br />
<br />
<br />
<fieldset><br />
<legend><br />
Contact Information:<br />
</legend><br />
<form action="MAILTO:[email protected]" method="post" enctype="text/plain"><br />
<pre><br />
<br />
First Name: <input type="text" name="firstname" size="20"> Last Name: <input type="text" name="lastname" size="20"> Profession: <select name="Profession"><br />
<option value="M.D.">M.D.<br />
<option value="D.O.">D.O.<br />
<option value="Nurse">Nurse<br />
<option value="E.M.T.">E.M.T.<br />
<option value="Paramedic">Paramedic<br />
<option value="Other" selected>Other<br />
</select><br />
<br><br />
EMail: <input type="text" name="email" size="20"> Address: <input type="text" name="mail" size="20"><br />
<br><br />
City: <input type="text" name="city" size="20"> State: <input type="text" name="state" size="20"> Zip Code: <input type="text" name="zipcode" size="20"><br />
<br><br />
</pre><br />
<legend>Comment or Question:</legend><input type="text" name="comment"><BR><br />
<center><br />
<textarea rows="10" cols="50"><br />
</textarea><br />
</center><br />
<br><br><br />
<br />
<center><br />
<input type="submit" value="Send"> <input type="reset" value="Reset"><br />
</center><br />
<br />
</form><br />
</fieldset><!--content--><legend>Comment or Question:</legend><input type="text" name="comment"><BR><br />
<center><br />
<textarea rows="10" cols="50"><br />
</textarea><br />
</center><br />
<br />
Should be:<br />
<br />
<legend>Comment or Question:</legend><BR><br />
<center><br />
<textarea name="comment" rows="10" cols="50"><br />
</textarea><br />
</center><!--content-->Thanks Ray!<br />
<br />
Made the changes, and it displays better, but it still doesn't send the text to the email - just the address.<!--content-->I don't quite understand what problem you are experiencing, but I just took your form...put it on my site (changed the address to mine) and tried it out twice with perfect results...<br />
using Outlook Express...<br />
<br />
below is the result I received...<br />
<br />
Content-Type: text/plain; charset="iso-8859-1"<br />
Content-Transfer-Encoding: 7bit<br />
<br />
<br />
firstname=Fred<br />
lastname=Barnes<br />
Profession=D.O.<br />
[email protected]<br />
mail=8888 East High<br />
city=Simpson<br />
state=Nevada<br />
zipcode=98765<br />
comment=...A subject...?<br />
subject=Form Submission<br />
<br />
<br />
*Note, I added a hidden field named "subject" and it's corresponding value "Form Submission", testing to see if it would in fact replace the Default Subject line that the mail client uses, but that doesn't happen...<!--content-->Hello CyCo:<br />
<br />
It may just be my Pegasus email that it isn't working with then, as it works with your Outlook.<br />
<br />
Do me a favor, go to <!-- w --><a class="postlink" href="http://www.fnun.edu/contact.html">www.fnun.edu/contact.html</a><!-- w --> and send me a form from CyCo.<br />
<br />
THANKS Y'all!<!--content-->Originally posted by fnunpres <br />
It may just be my Pegasus email that it isn't working with then, as it works with your Outlook.<br />
<br />
I'd suspect your browser before your email client. After all that's what is processing the form. I'm running Mozilla.<!--content-->Thanks y'all. It works now. Appreciate the advice.<!--content-->
 
Back
Top