Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2012
    Location
    New Jersey
    Posts
    74
    Plugin Contributions
    0

    Default creating custom forms

    I have modified the define_shippinginfo.php file to include a return request form. The HTML code is as follows:

    <p>Please fill out the form below to process your return/exchange</p>

    <form action=”mailto:[email protected]”>
    Name: <input name="Name" value="" size="10"><br>
    Phone Number: <input phone="phone" value="" size="10"><br>
    Your Email Address: <input email="Email" value="" size="10"><br>
    Order or invoice number: <input invoice="invoice" value="" size="10"><br>
    <center><input type="submit"></center>
    </form>

    and can be seen here

    My problem is that when I tested the form, it opens the new email form, but does not import the data that was filled in prior to hitting the submit. Why?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: creating custom forms

    It's not written correctly. For that form to work, you'd need some sort of script to process the entries and email them.

    Haven't done a form in a long time, but I think it would need to start with:

    <FORM METHOD=POST ENCTYPE="text/plain" ACTION="mailto etc.">

    You can get a lot more info about HTML forms at w3schools.com.

    I use a product called Machform.

  3. #3
    Join Date
    Jan 2012
    Location
    New Jersey
    Posts
    74
    Plugin Contributions
    0

    Default Re: creating custom forms

    Quote Originally Posted by stevesh View Post
    It's not written correctly. For that form to work, you'd need some sort of script to process the entries and email them.

    Haven't done a form in a long time, but I think it would need to start with:

    <FORM METHOD=POST ENCTYPE="text/plain" ACTION="mailto etc.">

    You can get a lot more info about HTML forms at w3schools.com.

    I use a product called Machform.
    I got the basics of HTML coding from web-source, as I have never coded HTML before this.

    If you can provide any more information I would be extremely grateful for your time and assistance.

    I went to w3schools.com and I would like to know if this is the correct information I am looking for:

    http://www.w3schools.com/html/tryit....html_form_mail

  4. #4
    Join Date
    Jan 2012
    Location
    New Jersey
    Posts
    74
    Plugin Contributions
    0

    Default Re: creating custom forms

    Okay this is what I now have:

    <form action="MAILTO:[email protected]" method="post" enctype="text/plain">
    Name:<br />
    <input type="text" name="name" value="your name" /><br />
    Your Phone Number (area code included)<br/>
    <input type="text" name="phone" value="your phone" /><br />
    E-mail:<br />
    <input type="text" name="mail" value="your email" /><br />
    Order or invoice number:<br />
    <input type="text" name="order" value="order number" size="50" />
    <br /><br />
    <input type="submit" value="Send">
    <input type="reset" value="Reset">

    </form>


    But when the mailer opens up it states that it is a form mail, but the data fields still are not importing, ie; name, phone, etc...

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: creating custom forms

    Copying your code (and changing the mailto address) to an EZ page and into the shipping info page works for me in both cases.

  6. #6
    Join Date
    Jan 2012
    Location
    New Jersey
    Posts
    74
    Plugin Contributions
    0

    Default Re: creating custom forms

    Okay now you lost me, have no easy pages, ( am clueless as to how to do them and what they do). Would you kindly walk me through it?

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: creating custom forms

    https://www.zen-cart.com/tutorials/i...hp?article=117

    But you don't need to bother with them if you want the form in the shipping info define page.

    I copied your code from post #4 into the shipping info define page (as you did), changed the mailto address to my address and it worked fine - it inserted the information from the fields into the email and sent them on.

  8. #8
    Join Date
    Jan 2012
    Location
    New Jersey
    Posts
    74
    Plugin Contributions
    0

    Default Re: creating custom forms

    Quote Originally Posted by stevesh View Post
    https://www.zen-cart.com/tutorials/i...hp?article=117

    But you don't need to bother with them if you want the form in the shipping info define page.

    I copied your code from post #4 into the shipping info define page (as you did), changed the mailto address to my address and it worked fine - it inserted the information from the fields into the email and sent them on.
    When I do it, it open my mailer system, my system is the email system that is associated with my domain. When I hit the submit button I get this 404 error:

    The requested URL /return request.html was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Apache Server at store.bbiclan.com Port 80


    Originally it was looking for a file and said the file did not exist. So I altered the code as such:

    <form name="input" action="return request.html" method="get">
    <form action="MAILTO:[email protected]" method="post" enctype="text/plain">
    Name:<br />
    <input type="text" name="name" value="your name" /><br />
    Your Phone Number (area code included)<br/>
    <input type="text" name="phone" value="your phone" /><br />
    E-mail:<br />
    <input type="text" name="mail" value="your email" /><br />
    Order or invoice number:<br />
    <input type="text" name="order" value="order number" size="50" />
    <br /><br />
    <input type="submit" value="Send">
    <input type="reset" value="Reset">

    </form>

 

 

Similar Threads

  1. Creating contact forms?
    By sim8729 in forum General Questions
    Replies: 2
    Last Post: 7 Jul 2011, 11:25 PM
  2. Custom Forms
    By wwiii in forum General Questions
    Replies: 3
    Last Post: 11 May 2009, 05:51 PM
  3. Creating Input Forms
    By jackii_8 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Apr 2009, 01:26 AM
  4. Creating Email Forms
    By ATC in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Apr 2008, 08:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR