Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #6913

    Hey Guys

    Wanted to change the sections for the contact form and figured out how to do that, but now my emails are not being sent and when you fill out the form and click submit, the message “your message has been sent successfully” doesn’t show up. Please any help would be great!

    #55886

    Oh by the way…here is my link

    http://www.drakeats.com/contact-2/

    #55887

    Hey,

    What code did you change?

    #55888

    Can I send you my login so you can check it out? I’m not great with coding stuff

    #55889

    this is the section that I tried to update and when I did it knocked out the message sending to my email

    /**

    * The Contact form gets generated by the avia_form class located in framework/php/class-form-generator.php

    */

    $form_args = array(

    “heading” => “<h3>”.__(‘Send us a message’,'avia_framework’).”</h3>”,

    “success” => “<h3>”.__(‘Your message has been sent!’,'avia_framework’).”</h3><p>”.__(‘Thank you!’,'avia_framework’).”</p>”,

    “submit” => __(‘Send’,'avia_framework’),

    “action” => get_permalink()

    );

    $elements = array(

    ‘yourname’ => array(‘type’=>’text’, ‘label’=>__(‘Name’,'avia_framework’), ‘check’=>’is_empty’), //user name

    ‘email’ => array(‘type’=>’text’, ‘label’=>__(‘E-Mail’,'avia_framework’), ‘check’=>’is_email’), //user email

    ‘phone #’ => array(‘type’=>’text’, ‘label’=>__(‘Phone Number’,'avia_framework’), ‘check’=>’is_empty’), //user phone

    ‘subject’ => array(‘type’=>’text’, ‘label’=>__(‘Subject’,'avia_framework’), ‘check’=>’is_empty’), //subject

    ‘message’ => array(‘type’=>’textarea’,'label’=>__(‘Message’,'avia_framework’), ‘check’=>’is_empty’), //message

    ‘myemail’ => array(‘type’=>’hidden’, ‘label’=>”, ‘check’=>”, ‘value’=> avia_get_option(‘email’) ), //email adress the form should be sent to

    ‘myblogname’=> array(‘type’=>’hidden’, ‘label’=>”, ‘check’=>”, ‘value’=> get_option(‘blogname’) ), //name of the website, gets added to the subject line

    ‘username’ => array(‘type’=>’decoy’, ‘label’=>”, ‘check’=>’must_empty’), //decoy input field for bots, input field gets hidden, if bot enters value form wont be submitted

    );

    $contact_form = new avia_form($form_args);

    $contact_form->create_elements($elements);

    $contact_form->display_form();

    ?>

    #55890

    Hey,

    you stated you changed some code, can you tell us what exactly you changed? It’s hard for us to go and look for what you did.. we’re not responsible for your own customisations so we can’t help unless you tell us what you did.

    #55891

    ‘phone #’ => array(‘type’=>’text’, ‘label’=>__(‘Phone Number’,'avia_framework’), ‘check’=>’is_empty’), //user phone

    this was the only code i changed. it did say website and i changed it to phone number. all i wanted to do was to change that one title and for some reason now the form is not sending to my email and it is not giving me the success that my form had been sent.

    #55892

    Instead of:

    'phone #' => array('type'=>'text', 'label'=>__('Phone Number','avia_framework'), 'check'=>'is_empty'), //user phone

    try:

    'phonenumber' => array('type'=>'text', 'label'=>__('Phone Number','avia_framework'), 'check'=>'is_empty'), //user phone

    #55893

    works perfectly dude…thanks so much for your help!

    #55894

    Glad that I could help you :)

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Contact Form’ is closed to new replies.