7 Replies Latest reply on Feb 16, 2010 8:33 AM by nmbnmb

    Submit button PARTLY works...

    sunny22girl

      I have a form on my contact page, using the spry text fields and a button in DMCS4. When I hit "submit", an email is indeed sent, but the contents of the content box are NOT sent...just the subject line. That's the first problem. Second problem is that after hitting "submit", the user is supposed to get sent back to my home page. Instead, a blank window opens that says my website name and then "/mail.php". I have struggled over the code and I can't see what is wrong with it. I asked my hosting company and they are not helpful, blaming my use of "3rd party software", which I suppose is the java script in the forms.

       

      I've attached a few files...a critique would be greatly appreciated.

        • 1. Re: Submit button PARTLY works...
          Ned Murphy Adobe Community Professional & MVP

          Try using an absolute URL for the Location value.

          • 2. Re: Submit button PARTLY works...
            sunny22girl Level 1

            Thanks for your reply. You mean in the mail.php, right? I tried that 

            yesterday prior to posting at the forum, w/ no improvement.

             

            But here is copy of the code that I noticed the last submit button 

            doesn't have a span id wrapper, though the text field and text area 

            elements do. Do you think this could be a problem?

             

             


             


             

             

             

             

             

             

             

             


             

             

             

             

             

             

             

             


             







             

            </div

            • 3. Re: Submit button PARTLY works...
              sunny22girl Level 1

              <div id="apDivSpryBox">

               

                      <form id="form1" name="form1" method="post" action="mail.php">

               

                         <span id="sprytextfield1">

               

                               <label><strong>

               

                              <a href="mailto:info@eliseray.com">info@eliseray.com

               

                              </a></strong>

               

                              (email link), or use the form below:<br /> <br /><br />your email<br />

               

                                      <input type="text" name="email" id="email" />

               

                                </label>

               

                               <span class="textfieldRequiredMsg">A value is required.

               

                          </span>

               

                          <span class="textfieldInvalidFormatMsg">Invalid format.

               

                          </span>

               

                      </span>

               

                      <span id="sprytextarea1">

               

                          <label><br /><br />comments<br />

               

                               <textarea name="message" id="message" cols="50" rows="7">

               

                          </textarea>

               

                                <span id="countsprytextarea1"> 

               

                          </span>

               

                      </label>

               

                         <span class="textareaRequiredMsg">A value is required.

               

                      </span>

               

                      <span class="textareaMaxCharsMsg">Exceeded maximum number of characters.

               

                      </span>

               

                  </span>

               

                  <label><br />

               

                        <input type="submit" name="submit" id="submit" value="Submit" />

               

                       <br />

               

                  </label>

               

                </form>

               

              </div>
              • 4. Re: Submit button PARTLY works...
                Ned Murphy Adobe Community Professional & MVP

                If you are getting an email sent when you submit, then chances are the form is not the problem.  Your mention of your host blaming 3rd party software puts a bad taste in my mouth--I should think a good host would expect a majority of things loaded on their server to be third party software (your files included)... but maybe you can challenge them to provide a working first party solution.

                • 5. Re: Submit button PARTLY works...
                  sunny22girl Level 1

                  Yes, I think I will call them next. I've found I get MUCH better 

                  support if I call them and talk to them as opposed to sending an 

                  email, which makes it easy to say "not our problem". I mean, 

                  Dreamweaver is pretty  main stream, right, and they darn well ought to 

                  be able to handle something I learned from a tutorial, right?

                  • 6. Re: Submit button PARTLY works...
                    Ned Murphy Adobe Community Professional & MVP

                    One thing I'll mention... (aside from not being any kind of knowledheable person when it comes to PHP), in looking back thru a couple files, when I process form elements in a PHP file I just call them as variables using the form item's name, not using $_REQUEST[]

                     

                    $message = 'From: ' . $name. "\n\n".$data;
                    $email = $email;

                    • 7. Re: Submit button PARTLY works...
                      nmbnmb Level 2

                      Your script is vulnerable to email hijacking. You can use Forms To Go for free with the unregistered version to generate a secured script to use.