Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
forms that are emailed.
Old 11-30-2005, 12:47 AM forms that are emailed.
Average Talker

Posts: 26
Trades: 0
Okay, so I figuered out how to make the form2mail work but when I receive it it is all garbled and my radio buttons dont have any value. Now, I can pick the text apart to figure out what it means but my boss will never be able to do that. How do I make it legable once the mail has been received?

Any help is greatly appreciated.

Thanks

Task
taskhill is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-30-2005, 01:03 AM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Garbled how? Can you show us an example?
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 11-30-2005, 01:05 AM
TrentonD's Avatar
Ultra Talker

Posts: 253
Location: Calgary, Alberta, Canada
Trades: 0
Also, if you show us the actual code sending the mail, it may help us out.

(100th post )
__________________
Signature Coming Soon! :)
Please login or register to view this content. Registration is FREE
TrentonD is offline
Reply With Quote
View Public Profile Visit TrentonD's homepage!
 
Old 11-30-2005, 02:17 AM
Average Talker

Posts: 26
Trades: 0
I have fiqured out how to sort it so that it is in some order but now some of the values dont display in the email. The site is at here and the source code is unlocked.

Thanks for looking

task
taskhill is offline
Reply With Quote
View Public Profile
 
Old 11-30-2005, 12:13 PM
Average Talker

Posts: 26
Trades: 0
Here is a small sample of the code that I am using. It is a large form so I won't incude it all.

<input type="hidden" name="recipient" value="myemail@email.com" />
<input type=hidden name="return_link_url" value="http://www.kiinsurance.com/thankyou/">
<input type=hidden name="sort" value="order:Insured Name,DBA,FEIN/SSN,Yrs with Comp,Effective Date,ZIP,W/C Class Code1,Annual Payrol1,#FT Empl1,#PT Empl1,">

<label><strong>Insured Name:<br />
<input name="Insured Name" type="text" onblur="MM_validateForm('Insured Name','','R');return document.MM_returnValue" size="50" maxlength="50" />
</strong></label>
<p><strong>
<label>DBA:<br />
<input name="DBA" type="text" onblur="MM_validateForm('DBA','','R');return document.MM_returnValue" size="50" maxlength="50" />
</label>
</strong></p>
<p><strong>
<label>FEIN/SSN:<br />

<input name="FEIN/SSN" type="text" onblur="MM_validateForm('FEIN/SSN','','RisNum');return document.MM_returnValue" size="11" maxlength="11" />
</label>
<label><br />
<br />
Any lapse in coverage?<br />
Yes:
<input name="Lapse in cov." type="radio" value="Yes" />
No:
<input name="Lapse in cov." type="radio" value="No" />
<br />
<br />
If yes how long? (in/yrs) <br />
<input name="How Long" type="text" size="6" maxlength="6" />
<br />
<br />
3 Year Company Verified Loss Data Will Be Required To<br />
Bind Coverage <br />
<br />
Current Year Insurance Carrier:<br />
<input name="Current Year Ins. Carrier" type="text" onblur="MM_validateForm(' Carrier','','R');return document.MM_returnValue" size="50" maxlength="50" />
<br />
<br />
</label>

Right now not all of the information is being sent. Only parts.

Any help is appreciated.

Thanks

Task
taskhill is offline
Reply With Quote
View Public Profile
 
Old 11-30-2005, 02:40 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Is your form's method GET or POST?

And technically, a form NAME should have no spaces or other non a-z,0-9 characters.

Which data is not being sent? Input fields, improperly formatted NAME or VALUE data can screw it up. And what does the output in the email look like? If we can't see the problem, it's hard to diagnose.

Last edited by funkdaddu; 11-30-2005 at 02:47 PM..
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 11-30-2005, 11:02 PM
Average Talker

Posts: 26
Trades: 0
My form method is post.

This is the name line
<form action="cgi-bin/form2mail.pl" method="post" name="Comp_quote" target="_self" id="Comp_quote">
<input type="hidden" name="recipient" value="myemail@email.com" />

and this is how the data is sent to the email account

Below is the result of your email form.
Submitted by taskhill@hotmail.com

Insured Name:
DBA: Ed Hill
FEIN/SSN:
Yrs with Comp:
Effective Date:
ZIP: 93308
W/C Class Code1:
Annual Payrol1:
#FT Empl1:
#PT Empl1:
barges-vessels-docks-bridges: Yes
barges-vessels-docks-bridges: Yes

As you can see, I have two input names for the radio buttons which I see are not necesarry.

Thank you for your time.

Task
taskhill is offline
Reply With Quote
View Public Profile
 
Old 12-01-2005, 12:52 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
It may be that you have 2 because you have 2 different named radios:

Code:
<input name="barges-vessels-docks-bridges" type="radio" value="Yes" />Yes 
<input name="barges, vessels, docks, bridges" type="radio" value="No" />No
Try naming them both "barges-vessels-docks-bridges"
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 12-02-2005, 02:52 AM
Average Talker

Posts: 26
Trades: 0
Okay,

Through trial and error I have found the line that is causing me headaches. It is the line:
<input type=hidden name="sort" value="order:Insured Name,DBA,FEIN/SSN,Yrs with Comp,Effective Date,ZIP,W/C Class Code1,Annual Payrol1,#FT Empl1,#PT Empl1,">

For some reason it does not like this line and when I delete it all of my information is sent. Except, it is sent out of order. Does anyone know an alterior line of coding or is there something that I have done wrong. Of course, the acutual line is much larger than this one and this one has been cut down to accomidate space. If you want to see actual line it is http://www.kiinsurance.com/comp_quote.html

Once again thanks.

Oh and by the way thanks funkdaddu for pointing out my errors on the radio names. I will fix that next.

Task
taskhill is offline
Reply With Quote
View Public Profile
 
Old 12-02-2005, 02:53 AM
Average Talker

Posts: 26
Trades: 0
crud borken link
Here is the correct link
here
taskhill is offline
Reply With Quote
View Public Profile
 
Old 12-02-2005, 08:57 AM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Maybe get rid of that last comma after "#PT Empl1"? Maybe the script is expecting one more variable after it.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 12-02-2005, 02:17 PM
Average Talker

Posts: 26
Trades: 0
I looked at the original script and it does not have a coma after the last value so thats not it. I will keep plugging away since this is how we learn.

taskhill is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to forms that are emailed.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.45986 seconds with 12 queries