View Full Version : Forms
Rachel Smith
January 24th, 2001, 10:34 PM
I have a formmailer which works well
but the information which is e-mailed
back to me is not in the order i want.
Is there any way to change this????????
Buzz
January 24th, 2001, 11:00 PM
Hi Rachel and Welcome!
Yes you can change the order of the information.
The easiest way would be to reorder the form input fields on the page.
If you post a link I can check out the code and give you some better advice if you need it.
------------------
[This message has been misspelled by Buzz.]
[This message has been edited by Buzz (edited 24 January 2001).]
Rachel Smith
January 25th, 2001, 02:13 AM
Buzz, you're so my hero. Here is the link. Any help you can provide would be awesome.
Please go to http://leopardmedia.topcities.com/table_form.htm
Buzz
January 25th, 2001, 03:06 AM
http://www.cybertechhelp.com/ubb/biggrin.gif Glad to help Rachel.
Quite a form there.
I must say I wasn't expecting such a form based on your question.
No problem though.
I'm not sure how your CGI script is set up.
That's the piece that actually mails the form . It's not viewable by people just browsing the web.
So I have a couple questions for you then. http://www.cybertechhelp.com/ubb/smile.gif
What information were you looking to rearrange?
Do you have access to the CGI form action?
The reason I ask is if your CGI script is set up to mail the form to you like:
input field 1
input field 4
input field 3
input field 7
Then it doesn't matter where you place those fields on a page the CGI script will still order them the way it has been told to.
------------------
[This message has been misspelled by Buzz.]
Rachel Smith
January 25th, 2001, 06:10 PM
Thanks for the help Buzz,
as for your question no i dont have access
to the cgi, but it doesnt really matter as the site its on is just a test site, i'am still waiting for the real site host's to tell me if they even have a formmailer!!!As for the other thing how do i know which is input field 1 or 2 or 20? As you can see i'am very new to this and any help is greatly appreciated.
Rachel
Buzz
January 25th, 2001, 08:46 PM
Sorry my using numbers may have been a bit misleading. Fields are actually named in the html using the name attribute. You can assign them numbers as a name if you like but they don't have to be numbered to work.
Here's a section of your code below.
Notice the red areas. Those are the names of the text fields.
Anything put in those fields is interpreted as "Name" and "Spouse Name" information.
Your cgi script tells the form to collect any information in the field with the label "Name" and mail it to you as Name information.
It sounds as if your just using a generic cgi for form mailing. You may be able to alter the information order without access to the cgi script. You can do a test. Basically all you need do is to reorder how your form is layed out. If you want the email information sent to you as Name, Spouse Name, Email, Street Address, City, State, Zip, etc. Then you can try to just set up your form with fields in that order. The cgi may simply be set to collect information in the order it was input and mail it off.
Hope this helps.
———————————————
<table width="800" border="0">
<tr>
<td width="100">
<div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"><b>Name:</b></font></div>
</td>
<td width="300">
<input type="text" <FONT COLOR="red">name="name"</FONT c> size="35">
</td>
<td width="100">
<div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"><b>Name:</b></font></div>
</td>
<td width="300">
<input type="text" <FONT COLOR="red">name="spouse name"</FONT c> size="35">
</td>
</tr>
</table>
------------------
[This message has been misspelled by Buzz.]
[This message has been edited by Buzz (edited 25 January 2001).]
Rachel Smith
January 25th, 2001, 09:01 PM
Thank Buzz every bit helps,
but the form is already laid out as i want it, it even tabs to the right field (dont know if that means anything) so i guess it's the form handler. If the real host doesn't have a formmialer can i download/buy one and would i be able to customize it and upload it to the cgi?
Buzz
January 25th, 2001, 10:24 PM
Well sorry Rachel. I feel like I'm not helping at all.
Yes, you can download many. Some for free other cost a bit of money. Check out www.cgiresources.com. (http://www.cgiresources.com.) You'll probably want Perl form actions. I did a quick search for you. Click <FONT COLOR="green">HERE</FONT c> (http://search.internet.com/cgi-bin/search.internet.com?method=mainQuery&QuerySummaryCB=querysummary&numresults=0&batchhits=10&DB18=ScriptSearch&query=Perl+Text+handling%2FForm ) to see results.
------------------
[This message has been misspelled by Buzz.]
[This message has been edited by Buzz (edited 25 January 2001).]
[This message has been edited by Buzz (edited 25 January 2001).]
[This message has been edited by Buzz (edited 25 January 2001).]
Rachel Smith
January 25th, 2001, 10:36 PM
Thanks again for all your help Buzz,
I also found a good site at http://www.nemesissoftware.com
Buzz
January 25th, 2001, 10:37 PM
http://search.internet.com/cgi-bin/search.internet.com?method=mainQuery&QuerySummaryCB=querysummary&numresults=0&batchhits=10&DB18=ScriptSearch&query=Perl+Text+handling%2FForms
that darn link won't kick in. http://www.cybertechhelp.com/ubb/biggrin.gif
------------------
[This message has been misspelled by Buzz.]
craftshow
January 29th, 2001, 07:57 AM
Rachael,
I deal with primarily free hosts. What I have found is they usually have some sort of form processor in their cgi which you will have access to via the <form action=..> line.
There are a wide variety of cgi scripts and their performance depends on how they are written. But if you create a simple form and study how the inputs items are arranged in the email you should be able to figure it out.
The latest one I am working with comes alphabetically by the input names.
So I just changed the names and preceded them in the numeric order I wanted. Unfortunately the script also included a numbered list. This is what I get:
1. 1name=Jack
2. 2address=anywhere,USA
and so on.
Without changing the input name from "name" to "1name". I would receive that info in the opposite order since address comes before name alphabetically.
There are some that accept a hidden sort tag:
<INPUT type=Hidden name="sort" value="Header, FName, LName, mailfrom, Address, City, State, Zip, Phone, Fax">
What I wouldn't do is try to figure the problem with one host while waiting for another because I don't think the answer will be universal.
Good Luck,
Tom
------------------
The Great American Craft Show (http://www.northcrafts.com)