Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Regular Coder student101's Avatar
    Join Date
    Nov 2007
    Posts
    634
    Thanks
    80
    Thanked 15 Times in 15 Posts
    I'd recommend starting here

    Quote Originally Posted by vipercode View Post
    http://www.carrarawebsitesolutions.com/contact
    I use to be able to do it standard html with no php but moved to codeigniter I am self teaching have been watching lot of videos Like Non NetTuts
    Thanks for your support!
    Update MySQL with checkboxes | Tell A Friend | Delete MySQL with checkboxes

    Give thanks & resolve when done :thumbsup:

  2. #17
    Regular Coder
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    109
    Thanks
    21
    Thanked 0 Times in 0 Posts
    I have just about got it working but only send a blank message now no name or subject or message.

    <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

    class Contactus extends MX_Controller {

    function index() {

    $this->load->view('header');
    $this->load->view('contactus');
    $this->load->view('footer');

    }

    function mailsent() {

    $this->load->library('email');
    $this->email->set_newline("\r\n");

    $this->email->from($this->input->post('email'), $this->input->post('name'));
    $this->email->to('info@example.com');
    $this->email->subject($this->input->post('subject'));
    $this->email->message($this->input->post('message'));

    if($this->email->send()) {

    $this->load->view('header');
    $this->load->view('mailsent');
    $this->load->view('footer');
    }
    else {
    show_error($this->email->print_debugger());
    }
    }
    }

    <div class="container">
    <div class="row">
    <form role="form" method="post" action="demo only yourdomain" class="form-horizontal">
    <div class="form-group">
    <input for="name" type="text" id="focusedInput" class="form-control required" id="name" placeholder="Enter Name">
    </div>
    <div class="form-group">
    <input for="email" id="focusedInput" type="text" class="form-control" id="email" placeholder="Enter Email">
    </div>
    <div class="form-group">
    <select for="subject" id="focusedInput" class="form-control" id="subject" name="subject">
    <option value="na" selected="">Choose One:</option>
    <option value="service">Feedback</option>
    <option value="suggestions">Suggestion</option>
    <option value="support">Question</option>
    <option value="other">Other</option>
    </select>
    </div>
    <div class="form-group">
    <textarea for="message" type="text" class="form-control" rows="4" placeholder="Message" name="message"></textarea>
    </div>
    <div class="pager">
    <button type="submit" class="btn btn-primary">Submit</button>
    <button type="reset" class="btn btn-danger">Reset</button>
    </div>
    </form>
    <!-- output the results (Success or failure message from controller) -->
    <div id="results"></div>
    </div>
    </div>

  3. #18
    Regular Coder
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    109
    Thanks
    21
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by student101 View Post
    I'd recommend starting here
    I have been though all that only does news letter set up. I am a premium member does not have a proper email form looks like have to get one made up.

  4. #19
    Regular Coder
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    109
    Thanks
    21
    Thanked 0 Times in 0 Posts
    I got it all working now. took me all day but done

  5. #20
    Regular Coder student101's Avatar
    Join Date
    Nov 2007
    Posts
    634
    Thanks
    80
    Thanked 15 Times in 15 Posts
    Well done!

    Post the working page, if you don't mind.
    I'd like to review where we could have solved this quicker

    Edit: U welcome to PM me, we all still learning
    Last edited by student101; 10-16-2013 at 04:08 PM.
    Thanks for your support!
    Update MySQL with checkboxes | Tell A Friend | Delete MySQL with checkboxes

    Give thanks & resolve when done :thumbsup:


 
Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •