18 Replies Latest reply on Sep 12, 2008 8:36 AM by Newsgroup_User

    How do I get my html form working on a Safari and Firefox Browser

    Simply_Speaking Level 1
      Is there something I need to do to get my form working on Safari and Firefox browser works fine on IE ?
      html form page using Dreamweaver CS3, fairly simple name, email etc.
      When viewing the site in Internet Explorer and details are submitted, they are received but not from Safari and Firefox.
      I thought it worked before but definitely not now.
      Checked Script with Web Host and this Ok (here uses X instead of email address etc)
      The code is in an AP div on a blank page with some other AP divs

      Is there some code I need to put in to get it to work in other browsers?

      Been on the phone to Web host who provide script but need to sort out Dreamweaver form.

      Need to get it sorted as goes to "thanks newsletter received" with nothing coming through.


      Thanks



        • 1. Re: How do I get my html form working on a Safari and Firefox Browser
          Level 7
          We would need to see the page and its code. Can you give us a link?

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          ==================


          "Simply Speaking" <webforumsuser@macromedia.com> wrote in message
          news:ga8inq$bk3$1@forums.macromedia.com...
          > Is there something I need to do to get my form working on Safari and
          > Firefox
          > browser works fine on IE ?
          > html form page using Dreamweaver CS3, fairly simple name, email etc.
          > When viewing the site in Internet Explorer and details are submitted, they
          > are
          > received but not from Safari and Firefox.
          > I thought it worked before but definitely not now.
          > Checked Script with Web Host and this Ok (here uses X instead of email
          > address
          > etc)
          > The code is in an AP div on a blank page with some other AP divs
          >
          > Is there some code I need to put in to get it to work in other browsers?
          >
          > Been on the phone to Web host who provide script but need to sort out
          > Dreamweaver form.
          >
          > Need to get it sorted as goes to "thanks newsletter received" with nothing
          > coming through.
          >
          >
          > Thanks
          >
          >
          >
          >
          >
          > <div class="style37" id="apDiv2">
          > <blockquote>
          > <p align="left" class="style38">Newsletter</p>
          > <p align="left" class="style38"> </p>
          > <blockquote>
          > <p class="style39">To receive news and info on the latest Littler's
          > items or events please fill in the form and send us your details.</p>
          > <blockquote>
          > <form method="POST" action="/cgi-bin/formmail">
          > <table width="400" cellspacing="10">
          > <tr>
          > <td><span class="style39"><strong>First
          > Name</strong></span></td>
          > <td><input type="text" name="firstnameText"
          > id="firstnameText"
          > /></td>
          > </tr>
          > <tr>
          > <td><span class="style41">Last Name</span></td>
          > <td><input type="text" name="lastnameText" id="lastnameText"
          > /></td>
          > </tr>
          > <tr>
          > <td><span class="style39"><strong>Email</strong></span></td>
          > <td><input type="text" name="emailText" id="emailText"
          > /></td>
          > </tr>
          > <tr>
          > <td><span
          > class="style39"><strong>Country</strong></span></td>
          > <td><input type="text" name="countryText" id="countryText"
          > /></td>
          > </tr>
          > <tr>
          > <td><span
          > class="style39"><strong>Male/Female</strong></span></td>
          > <td><select name="genderMenu" id="genderMenu">
          > <option value="male" selected="selected">Male</option>
          > <option value="female">Female</option>
          > </select> </td>
          > </tr>
          > <tr>
          > <td><span class="style39"><strong>Age</strong></span></td>
          > <td><select name="dayMenu" id="dayMenu">
          > <option value="Early Teens">Early Teens</option>
          > <option value="Mid Teens">Mid Teens</option>
          > <option value="Late Teens">Late Teens</option>
          > <option value="Early 20's">Early 20's</option>
          > <option value="Mid 20's">Mid 20's</option>
          > <option value="Late 20's">Late 20's</option>
          > <option value="Early 30's">Early 30's</option>
          > <option value="Mid 30's" selected="selected">Mid
          > 30's</option>
          > <option value="Late 30's">Late 30's</option>
          > <option value="Early 40's">Early 40's</option>
          > <option value="Mid 40's">Mid 40's</option>
          > <option value="Late 40's">Late 40's</option>
          > <option value="Early 50's">Early 50's</option>
          > <option value="Mid 50's">Mid 50's</option>
          > <option value="Late 50's">Late 50's</option>
          > <option value="Early 60's">Early 60's</option>
          > <option value="Mid 60's">Mid 60's</option>
          > <option value="Late 60's">Late 60's</option>
          > <option value="Early 70's">Early 70's</option>
          > <option value="Mid 70's">Mid 70's</option>
          > <option value="Late 70's">Late 70's</option>
          > <option value="Early 80's">Early 80's</option>
          > <option value="Mid 80's">Mid 80's</option>
          > <option value="Late 80's">Late 80's</option>
          > <option value="Early 80's">Early 90's</option>
          > <option value="Mid 90's">Mid 90's</option>
          > <option value="Late 90's">Late 90's</option>
          > <option value="Early 100's">Early 100's</option>
          > <option value="Mid 100's">Mid 100's</option>
          > <option value="Late 100's">Late 100's</option>
          > </select></td>
          > </tr>
          > <tr>
          > <td> </td>
          > <td><a href="newsletter_thanks.html">
          > <input type="submit" name="Submit" id="Submit"
          > value="Send" />
          > </a></td>
          > </tr>
          > </table>
          > <input TYPE="hidden" NAME="recipient" VALUE="X">
          > <input TYPE="hidden" NAME="subject" VALUE="newsletter signup">
          > <input TYPE="hidden" NAME="redirect" VALUE="X">
          > <input TYPE="hidden" NAME="realname" VALUE= "newsletter signup">
          > <input TYPE="hidden" NAME="email" VALUE="X">
          > <input TYPE="hidden" NAME="return_link_url" VALUE="X">
          > </form>
          > </blockquote>
          > <p class="style39">Your privacy is very important to us. Any
          > information
          > you send to us is used to improve the service we provide to you. </p>
          > <p class="style39">If you wish to cancel your newsletters, please
          > let us
          > know.</p>
          > <p class="style39"> </p>
          > </blockquote>
          > </blockquote>
          > </div>
          >

          • 2. How do I get my html form working on a Safari and Firefox Browser
            Simply_Speaking Level 1
            Thanks, for taking a look.
            Boss doesn't want a link up on the forum.
            What I have done is put the code on a new page, which is how it sits on the page.
            Is this ok for you?

            Code attached below.

            Sorry, Thanks
            • 3. Re: How do I get my html form working on a Safari and Firefox Browser
              Level 7
              <form method="post" action="/cgi-bin/formmail">

              The script is the one linked here (/cgi-bin/formmail). Any failure in your
              form's desired behavior is a result of what's going on in that script, so to
              debug this, we'd need to see what you have in that script. Notwithstanding
              that need, I'm wondering if the lack of a proper extension for that script
              is causing the problem. Ordinarily that script is referenced as
              "formmail.pl" (as I recall - I don't use such scripts, preferring to grow my
              own). It's possible that you have a formmail directory there with a default
              file contained therein, but I kind of doubt it.

              --
              Murray --- ICQ 71997575
              Adobe Community Expert
              (If you *MUST* email me, don't LAUGH when you do so!)
              ==================
              http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
              http://www.dwfaq.com - DW FAQs, Tutorials & Resources
              ==================


              "Simply Speaking" <webforumsuser@macromedia.com> wrote in message
              news:ga8q27$kgh$1@forums.macromedia.com...
              > Thanks, for taking a look.
              > Boss doesn't want a link up on the forum.
              > What I have done is put the code on a new page, which is how it sits on
              > the
              > page.
              > Is this ok for you?
              >
              > Code attached below.
              >
              > Sorry, Thanks
              >
              > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
              > " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
              > <html xmlns=" http://www.w3.org/1999/xhtml">
              > <head>
              > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
              > <title>Untitled Document</title>
              > <style type="text/css">
              > <!--
              > .style37 {font-size: 12px}
              > .style38 {font-family: Arial, Helvetica, sans-serif;
              > font-weight: bold;
              > font-size: 16px;
              > }
              > .style39 {font-family: Arial, Helvetica, sans-serif}
              > .style41 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
              > #apDiv2 { position:absolute;
              > left:202px;
              > top:65px;
              > width:655px;
              > height:510px;
              > z-index:15;
              > }
              > -->
              > </style>
              > </head>
              >
              > <body>
              > <div class="style37" id="apDiv2">
              > <blockquote>
              > <p align="left" class="style38">Newsletter</p>
              > <p align="left" class="style38"> </p>
              > <blockquote>
              > <p class="style39"> </p>
              > <blockquote>
              > <form method="post" action="/cgi-bin/formmail">
              > <table width="400" cellspacing="10">
              > <tr>
              > <td><span class="style39"><strong>First
              > Name</strong></span></td>
              > <td><input type="text" name="firstnameText"
              > id="firstnameText"
              > /></td>
              > </tr>
              > <tr>
              > <td><span class="style41">Last Name</span></td>
              > <td><input type="text" name="lastnameText" id="lastnameText"
              > /></td>
              > </tr>
              > <tr>
              > <td><span class="style39"><strong>Email</strong></span></td>
              > <td><input type="text" name="emailText" id="emailText"
              > /></td>
              > </tr>
              > <tr>
              > <td><span
              > class="style39"><strong>Country</strong></span></td>
              > <td><input type="text" name="countryText" id="countryText"
              > /></td>
              > </tr>
              > <tr>
              > <td><span
              > class="style39"><strong>Male/Female</strong></span></td>
              > <td><select name="genderMenu" id="genderMenu">
              > <option value="male" selected="selected">Male</option>
              > <option value="female">Female</option>
              > </select> </td>
              > </tr>
              > <tr>
              > <td><span class="style39"><strong>Age</strong></span></td>
              > <td><select name="dayMenu" id="dayMenu">
              > <option value="Early Teens">Early Teens</option>
              > <option value="Mid Teens">Mid Teens</option>
              > <option value="Late Teens">Late Teens</option>
              > <option value="Early 20's">Early 20's</option>
              > <option value="Mid 20's">Mid 20's</option>
              > <option value="Late 20's">Late 20's</option>
              > <option value="Early 30's">Early 30's</option>
              > <option value="Mid 30's" selected="selected">Mid
              > 30's</option>
              > <option value="Late 30's">Late 30's</option>
              > <option value="Early 40's">Early 40's</option>
              > <option value="Mid 40's">Mid 40's</option>
              > <option value="Late 40's">Late 40's</option>
              > <option value="Early 50's">Early 50's</option>
              > <option value="Mid 50's">Mid 50's</option>
              > <option value="Late 50's">Late 50's</option>
              > <option value="Early 60's">Early 60's</option>
              > <option value="Mid 60's">Mid 60's</option>
              > <option value="Late 60's">Late 60's</option>
              > <option value="Early 70's">Early 70's</option>
              > <option value="Mid 70's">Mid 70's</option>
              > <option value="Late 70's">Late 70's</option>
              > <option value="Early 80's">Early 80's</option>
              > <option value="Mid 80's">Mid 80's</option>
              > <option value="Late 80's">Late 80's</option>
              > <option value="Early 80's">Early 90's</option>
              > <option value="Mid 90's">Mid 90's</option>
              > <option value="Late 90's">Late 90's</option>
              > <option value="Early 100's">Early 100's</option>
              > <option value="Mid 100's">Mid 100's</option>
              > <option value="Late 100's">Late 100's</option>
              > </select></td>
              > </tr>
              > <tr>
              > <td> </td>
              > <td><a href="newsletter_thanks.html">
              > <input type="submit" name="Submit" id="Submit"
              > value="Send" />
              > </a></td>
              > </tr>
              > </table>
              > <input type="hidden" name="recipient" value="X" />
              > <input type="hidden" name="subject" value="newsletter signup" />
              > <input type="hidden" name="redirect" value="" />
              > <input type="hidden" name="realname" value= "newsletter signup"
              > />
              > <input type="hidden" name="email" value="X" />
              > <input type="hidden" name="return_link_url" value="X" />
              > </form>
              > </blockquote>
              > <p class="style39"> </p>
              > </blockquote>
              > </blockquote>
              > </div>
              > </body>
              > </html>
              >

              • 4. Re: How do I get my html form working on a Safari and Firefox Browser
                Simply_Speaking Level 1
                The script is from the Web Host, they use Matt Wrights Formail V1.9 which creates the scripts. Went through with them and pasted this in the form code at the top and the bottom basicly.
                The Web Host said the script works as it works on Internet Explorer.
                Therefore it is something to do with the form so speak to Dreamweaver.
                Are you saying you think it's the script rather than the form?
                • 5. Re: How do I get my html form working on a Safari and Firefox Browser
                  Level 7
                  > Are you saying you think it's the script rather than the form?

                  Certainly. There is nothing in the form to not work. Any failure would
                  have to be in the script that is processing the data.

                  --
                  Murray --- ICQ 71997575
                  Adobe Community Expert
                  (If you *MUST* email me, don't LAUGH when you do so!)
                  ==================
                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                  ==================


                  "Simply Speaking" <webforumsuser@macromedia.com> wrote in message
                  news:ga8ssb$o10$1@forums.macromedia.com...
                  > The script is from the Web Host, they use Matt Wrights Formail V1.9 which
                  > creates the scripts. Went through with them and pasted this in the form
                  > code at
                  > the top and the bottom basicly.
                  > The Web Host said the script works as it works on Internet Explorer.
                  > Therefore it is something to do with the form so speak to Dreamweaver.
                  > Are you saying you think it's the script rather than the form?
                  >

                  • 6. Re: How do I get my html form working on a Safari and Firefox Browser
                    Level 7
                    Or in the path to the script as shown in the action attribute of the form
                    tag.

                    --
                    Murray --- ICQ 71997575
                    Adobe Community Expert
                    (If you *MUST* email me, don't LAUGH when you do so!)
                    ==================
                    http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                    http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                    ==================


                    "Simply Speaking" <webforumsuser@macromedia.com> wrote in message
                    news:ga8ssb$o10$1@forums.macromedia.com...
                    > The script is from the Web Host, they use Matt Wrights Formail V1.9 which
                    > creates the scripts. Went through with them and pasted this in the form
                    > code at
                    > the top and the bottom basicly.
                    > The Web Host said the script works as it works on Internet Explorer.
                    > Therefore it is something to do with the form so speak to Dreamweaver.
                    > Are you saying you think it's the script rather than the form?
                    >

                    • 7. Re: How do I get my html form working on a Safari and Firefox Browser
                      Simply_Speaking Level 1
                      But why work in IE but not Safari or Firefox?

                      Thanks
                      • 8. Re: How do I get my html form working on a Safari and Firefox Browser
                        Level 7
                        On Wed, 10 Sep 2008 17:35:07 +0000 (UTC), "Simply Speaking"
                        <webforumsuser@macromedia.com> wrote:

                        >But why work in IE but not Safari or Firefox?

                        This is an excerpt from your posted code:

                        <input TYPE="hidden" NAME="recipient" VALUE="X">
                        <input TYPE="hidden" NAME="subject" VALUE="newsletter signup">
                        <input TYPE="hidden" NAME="redirect" VALUE="X">
                        <input TYPE="hidden" NAME="realname" VALUE= "newsletter signup">
                        <input TYPE="hidden" NAME="email" VALUE="X">
                        <input TYPE="hidden" NAME="return_link_url" VALUE="X">

                        Do those hidden fields actually have "X" in them, or is that an edit
                        when you posted the code?

                        Gary
                        • 9. Re: How do I get my html form working on a Safari and Firefox Browser
                          Simply_Speaking Level 1
                          Yes,
                          Code has been edited before posting.
                          Works in IE not in Firefox or Safari.
                          • 10. Re: How do I get my html form working on a Safari and Firefox Browser
                            Level 7
                            On Thu, 11 Sep 2008 07:44:11 +0000 (UTC), "Simply Speaking"
                            <webforumsuser@macromedia.com> wrote:

                            >Yes,
                            >Code has been edited before posting.
                            >Works in IE not in Firefox or Safari.

                            If, as you say, it's Matt's formmail or a clone thereof, about the
                            best I can do is refer you to the docs:
                            http://www.scriptarchive.com/readme/formmail.html#setting_up

                            Gary
                            • 11. Re: How do I get my html form working on a Safari and Firefox Browser
                              bregent Most Valuable Participant
                              Does the .pl script have referrer's enabled? It is quite possible that you have Firefox and Safari configured to not pass referrers, so the script will fail. It is best to disable referrers in the scripit.
                              • 12. Re: How do I get my html form working on a Safari and Firefox Browser
                                Simply_Speaking Level 1
                                Message to Murray *ACE* and Gary White.

                                Thank you for your help, now sorted the problem out.
                                Please can you DELETE the CODE on your message repeated from my post.
                                There is an error in the form code blocking the error message to the script, also my boss not happy about having his code on the forum (not very professional or something).

                                Thanks wouldn't have sorted it with out your comments.
                                • 13. Re: How do I get my html form working on a Safari and Firefox Browser
                                  Level 7
                                  > Please can you DELETE the CODE on your message repeated from my post.

                                  Sorry - cannot be done.

                                  > also my boss not happy about having his code on the forum (not very
                                  > professional or something).

                                  Tell your boss to calm down. It is quite normal for a help forum like this
                                  to post your code.

                                  --
                                  Murray --- ICQ 71997575
                                  Adobe Community Expert
                                  (If you *MUST* email me, don't LAUGH when you do so!)
                                  ==================
                                  http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
                                  http://www.dwfaq.com - DW FAQs, Tutorials & Resources
                                  ==================


                                  "Simply Speaking" <webforumsuser@macromedia.com> wrote in message
                                  news:gadfi6$8th$1@forums.macromedia.com...
                                  > Message to Murray *ACE* and Gary White.
                                  >
                                  > Thank you for your help, now sorted the problem out.
                                  > Please can you DELETE the CODE on your message repeated from my post.
                                  > There is an error in the form code blocking the error message to the
                                  > script,
                                  > also my boss not happy about having his code on the forum (not very
                                  > professional or something).
                                  >
                                  > Thanks wouldn't have sorted it with out your comments.
                                  >

                                  • 14. Re: How do I get my html form working on a Safari and Firefox Browser
                                    Simply_Speaking Level 1
                                    Murray *ACE*,

                                    Again Thank you for looking at the code.

                                    If you could please delete it.

                                    My boss doesn't want it up. It is up because of an error in the code.

                                    You just need to edit your message.

                                    He's not very happy at the moment, if you could do it, you will be saving me more aggro.

                                    He just doesn't want the code up.

                                    Thanks again, Appreciate your help.
                                    • 15. Re: How do I get my html form working on a Safari and   Firefox Browser
                                      Level 7
                                      Simply Speaking wrote:
                                      > He's not very happy at the moment, if you could do it, you will be saving me
                                      > more aggro.
                                      >
                                      > He just doesn't want the code up.

                                      Many community experts who provide help in these forums use a news
                                      server, and cannot edit posts. Even if they could, editing a post is
                                      pointless.

                                      Almost as soon as you post anything in a public forum like this one, it
                                      is rapidly picked up by Google and other search engines. Just do a
                                      Google search for "simply speaking safari firefox", and you'll see that
                                      your code has been archived on other sites. If you don't want others to
                                      see something, don't put it on the internet in the first place.

                                      --
                                      David Powers, Adobe Community Expert
                                      Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
                                      Author, "PHP Solutions" (friends of ED)
                                      http://foundationphp.com/
                                      • 16. Re: How do I get my html form working on a Safari and Firefox Browser
                                        Simply_Speaking Level 1
                                        Yes, the code should not have been posted on the forum.

                                        Please delete the code as soon as possible.

                                        Thank you.
                                        • 17. Re: How do I get my html form working on a Safari and Firefox Browser
                                          bregent Most Valuable Participant
                                          >Yes, the code should not have been posted on the forum.
                                          >
                                          >Please delete the code as soon as possible.

                                          Once again, their posts cannot be edited. They posted from the nntp side and do not have accounts on the forum side. And besides being on this forum, the posts have already been archived on google groups and have been replicated to thousands of nntp servers. Sorry but you will have to live with that.
                                          • 18. Re: How do I get my html form working on a Safari and Firefox Browser
                                            Level 7
                                            Simply Speaking posted in macromedia.dreamweaver:

                                            > Yes, the code should not have been posted on the forum.
                                            >
                                            > Please delete the code as soon as possible.

                                            As said, too late.

                                            But really, there's nothing proprietary in that code for him/her to
                                            worry about. It's just a simple form with fairly common questions. No
                                            trade secrets or anything. You might see the age question dealt with
                                            differently on other sites, but no biggie.

                                            Even those hidden fields are relatively common as Matt's formmail has
                                            been around for decades. If that is his/her concern, it isn't all that
                                            hard to write a new one (many posts are in this newsgroup that can
                                            help).


                                            --
                                            Mark A. Boyd
                                            Keep-On-Learnin' :)