Computer Hope

Internet & Networking => Web design => Topic started by: blackbelt on December 31, 2007, 02:36:26 PM

Title: IE and Forms
Post by: blackbelt 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.
Title: Re: IE and Forms
Post by: michaewlewis 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>.
Title: Re: IE and Forms
Post by: blackbelt 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>
Title: Re: IE and Forms
Post by: michaewlewis on January 02, 2008, 03:54:57 PM
Check your internet explorer settings.... It worked fine in mine. I'm using IE7
Title: Re: IE and Forms
Post by: blackbelt 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
Title: Re: IE and Forms
Post by: michaewlewis on January 03, 2008, 09:37:21 AM
Yes, it posts just fine and emails right away.
What version of IE do you have?
Title: Re: IE and Forms
Post by: blackbelt 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.
Title: Re: IE and Forms
Post by: blackbelt 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