Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: IE and Forms  (Read 3268 times)

0 Members and 1 Guest are viewing this topic.

blackbelt

  • Guest
IE and Forms
« on: December 31, 2007, 02:36:26 PM »
I recently did a quick form for a friend, and used mailto: as the action in the form.  Not too elegant, but should work ok, right?  Well works great with firefox in both Windows XP and Madriva Linux, but will not fill the form information using Internet Explorer.

Anybody have any idea what is wrong here?

<div id="main">
   <form id="warranty" action="mailto:[email protected]" method="post" enctype="text/plain">
   <p>

Thanks in Advance
Bill.

michaewlewis



    Intermediate
  • Thanked: 26
    • Yes
    • Yes
  • Experience: Expert
  • OS: Unknown
Re: IE and Forms
« Reply #1 on: January 01, 2008, 09:36:03 PM »
I'd recommend not using a mailto for a form, even though it may be possible. Its just not a good idea, unless you're absolutely sure that all your visitors have a mail client installed and are comfortable with sharing their email address with you. (I wouldn't)
Use a php program to send the form for you. www.phpbuilder.net has several form mailers available for free.

I didn't notice anything wrong with your code, but I can't see the whole code either. You may want to insert a larger snippet from your code so I can see if there's something else wrong with it. If you don't mind, show us everything from <form> to </form>.

blackbelt

  • Guest
Re: IE and Forms
« Reply #2 on: January 02, 2008, 03:37:35 PM »
Fair enough, here you go!  His server doesn't support PHP otherwise, I agree.  Obviously there's a IE problem, but for the life of me, I can't figure out why.

   <form id="warranty" action="mailto:[email protected]" method="post" enctype="text/plain">
   <p>
      <h1>Warranty Record</h1>

      <h3>Lakeside Marine Products</h3>
      <h4>Thank you for your purchase. Your new boat lift performs along side the best in the industry - and in many ways, leads the industry - particularly in warranty coverage. Customer satisfaction is a key ingredient in every Lakeside Lift Corporation transaction.</h4>
     <h4>We are a small company with a passion to provide great products at a very affordable price. On average, word of mouth sales account for more than one of every four sales. This is a testament to our excellent product value and customer satisfactoin.</h4>
   </p>
   <p>
      <label for="name">Name:</label>
      <input type="text" size="81" id="name" name="name">

   </p>
   <p>
      <label for="address">Address:</label>
      <input type="text" size="78" id="address" name="address">
   </p>
      <p>
      <label for="city">City:</label>
      <input type="text" size="25" id="city" name="city">

      <label for="state">State:</label>
      <input type="text" size="15" id="state" name="state">
      <label for="zip">Zip Code:</label>
      <input type="text" size="7" maxlength="7" id="zip" name="zip">
      <label for="country">Country:</label>
      <input type="text" size="6" id="country" name="country">
   </p>

   <p>
      <label for="product">Product Purchased:</label>
      <input type="text" size="65" id="product" name="product">
   </p>
   <p>
      <label for="model">Model:</label>
      <input type="text" size="32" id="model" name="model">
      <label for="sernum">Serial #:</label>

      <input type="text" size="31" id="sernum" name="sernum">
   </p>
   <p>
      <label for="dateofpur">Date of Purchase:</label>
      <input type="text" size="67" id="dateofpur" name="dateofpur">
   </p>
   <p>
      <label for="placeofpur">Dealer Name:</label>

      <input type="text" size="72" id="placeofpur" name="placeofpur">
   </p>
   <p>
      <label for="sales">Would you like to be notified of any special sales (motors, guides, etc.) </label>
      <input type="radio" name="sales" id="sales" value="Yes"><label for="yes">Yes</label>
      <input type="radio" name="sales" id="sales" value="No"><label for="no">No</label>
   </p>
   <p>

      Comments

      <textarea cols="67" rows="3" id="comments" name="comments">Write any comments here...</textarea>
   </p>
   <p>
      <input type="submit" value="Submit">
      <input type="reset" value="Reset">
   </p>
   <p>

     <img src="lakesidelogo.gif">
   </p>
   </form>

michaewlewis



    Intermediate
  • Thanked: 26
    • Yes
    • Yes
  • Experience: Expert
  • OS: Unknown
Re: IE and Forms
« Reply #3 on: January 02, 2008, 03:54:57 PM »
Check your internet explorer settings.... It worked fine in mine. I'm using IE7

blackbelt

  • Guest
Re: IE and Forms
« Reply #4 on: January 02, 2008, 08:03:29 PM »
Did it post the information into your mail client?  That's where the problem lies for me.  It opens the mail client, but the body is blank.

Thanks for our help so far.

Bill

michaewlewis



    Intermediate
  • Thanked: 26
    • Yes
    • Yes
  • Experience: Expert
  • OS: Unknown
Re: IE and Forms
« Reply #5 on: January 03, 2008, 09:37:21 AM »
Yes, it posts just fine and emails right away.
What version of IE do you have?

blackbelt

  • Guest
Re: IE and Forms
« Reply #6 on: January 03, 2008, 09:47:58 AM »
I have tried it with both IE6 and IE7 on numerous machines, and can't get it to post the information to the email.  Its just blank in the body.

blackbelt

  • Guest
Re: IE and Forms
« Reply #7 on: January 04, 2008, 10:23:18 PM »
Re-wrote and re-hosted using PHP.  No problems.  Should have done it right the first time anyway.

Thanks for the help,

Bill