[eluser]LuckyFella73[/eluser]
Hi Mari,
you better send your values as post values like this:
Code:
$(function() {
$(".submit").click(function() {
var frm_name = $("#name").val();
var frm_title = $("#title").val();
var frm_content = $("#content").val();
//var dataString = 'name ='+ name +'&title; ='+title+'&content; ='+content;
$.ajax({
type: "POST",
url: "join.php",
data: { name: frm_name, title: frm_title, content: frm_content },
success: function(){
$('.success').fadeIn(200).show();
$('.error').fadeOut(200).hide();
});
});
});
});
In your controller get the values like:
Code:
$name = $this->input->post('name');
$title = $this->input->post('title');
$content = $this->input->post('content');
Does the form data reach your "join" controller the way you have it?
Usually you have to put the base_url() here..