0
Welcome Guest! Login
0 items Join Now

help with e-mail submit form

    • J!eremy's Avatar
    • J!eremy
    • Elite Rocketeer
    • Posts: 2108
    • Thanks: 8

    help with e-mail submit form

    Posted 16 years 9 months ago
    • I am trying to accomplish a e-mail (newsletter) sign up module. All I want it to do it be a small for that has "e-mail: [text box] " and submit button.

      That needs to then send to the "contact" that is set throught the main Joomla contacts component.

      Here is what I have that does not work...

      btw... Joomla 1.5
      <script type="text/javascript">
      <!--
           function validateForm( frm ) {
                var valid = document.formvalidator.isValid(frm);
                if (valid == false) {
                     // do field validation
                     if (frm.email.invalid) {
                          alert( "Please enter a valid e-mail address." );
                     } else if (frm.text.invalid) {
                          alert( "Please make sure the form is complete and valid." );
                     }
                     return false;
                } else {
                     frm.submit();
                }
           }
      // -->
      </script>
      Sign up to receive latest news from Mortgage Educators and details on how to pursue a career as a Mortgage Professional
       
      <tr>
           <td colspan="2">
           
           <form action="/index.php?option=com_content&view=article&id=115&Itemid=79" method="post" name="emailForm" id="emailForm" class="form-validate">
                <div class="contact_email">
                     
                     <label id="contact_emailmsg" for="contact_email">
                          &nbsp;E-mail address:
                     </label>
                     
                     <input type="text" id="contact_email" name="email" size="18" value="" class="inputbox required validate-email" maxlength="100" />
                     
                     <button class="button validate" type="submit">Send</button>
                </div>
       
           <input type="hidden" name="option" value="com_contact" />
           <input type="hidden" name="view" value="contact" />
           <input type="hidden" name="id" value="1" />
           <input type="hidden" name="task" value="submit" />
           <input type="hidden" name="e2abb96c29e726bca2f938678e129e9a" value="1" />    </form>
           
           </td>
      </tr></table>

      and the
      /index.php?option=com_content&view=article&id=115&Itemid=79
      was the "Thank you" Article set up.

      Thanks for your help in advance!
    • Send moderators PMs ONLY if they request it.
      James' First Blog Post lol
      Top Tips for Support
      Be SPECIFIC when posting.
    • J!eremy's Avatar
    • J!eremy
    • Elite Rocketeer
    • Posts: 2108
    • Thanks: 8

    Re: help with e-mail submit form

    Posted 16 years 9 months ago
    • Well, I got it to work, But I had to go outside of Joomla and just use a simple mailform.php or contact.php I never got it to work using the contact who was listed as a contact in J!
    • Send moderators PMs ONLY if they request it.
      James' First Blog Post lol
      Top Tips for Support
      Be SPECIFIC when posting.

Time to create page: 0.279 seconds