Welcome Guest, Not a member yet? Register   Sign In
POST Question
#1

[eluser]mrwilson1[/eluser]
I have two problems, the first is this:
I cannot make contact with any of my forms when hitting submit. Background on the forms is that they come from my first codeigniter site and work perfectly there. One is a login form and the other a blog entry form. The log in worked last week but I am afraid I must have changed a config item sometime. Where would one look to corral this type of problem. When I hit submit all that happens is the name and password or blog data disappears, but nothing else happens. Not even an error. In fact I have tried to echo out the form data upon submission but nothing shows up.

I know my routing setup is right.
Code:
$route['default_controller'] = "main";

Some of my config settings are

Code:
$config['base_url'] = "http://lemonrose.net/";

Code:
$system_folder = "ci/system";

$application_folder = "ci/application";

$autoload['libraries'] = array(
'input','database', 'session', 'form_validation', 'table', 'email', 'typography', 'pagination', 'trackback', 'user_agent');

$autoload['helper'] = array('url', 'html', 'date', 'form', 'array', 'email');

Please tell me what other info I can post.

The second problem is the dreaded index.php removal problem

I am using this to remove the index.php page. Again this is also from the first site and works perfectly. This works for my fist page refered to in the routing congfig but after that I have to use the index.php to connect links.

Code:
RewriteEngine on
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

DirectoryIndex index.php
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]


I think I have tried to fix these simple problems enough that I am preventing them from working somehow.

Here is an example of one of the forms

Code:
echo validation_errors();
    
    echo form_open('log/login');//controller and function
    
    echo form_label('User', 'name');
    
    $data = array('name' => 'name', 'id' => 'name', 'maxlength' => '20', 'size' =>
        '10', 'placeholder' => 'UserName' );
        
    echo form_input($data);
    
    echo nbs(5);
    
    echo form_label('Password', 'pass');
    
    $data = array('name' => 'pass', 'id' => 'pass', 'maxlength' => '30', 'size' =>
        '20', 'placeholder' => 'Password' );
    echo form_password($data);
    
    echo nbs(5);
    
    echo form_label('Whats 10 + 11?', 'human');
    
    $data = array(
    'name'=>'human',
    'id'=>'human',
    'placeholder'=>'Human?',
    'maz_length'=> '2',
    'min_length'=> '2',
    'size'=>'10'    
    );
    echo form_input($data);
    
    echo form_submit('submit', 'Send');
    echo form_close();

Both codeigniter sites are on the same host. The forms are simple and should easily work. The database system works fine as I can log visitors and sessions. The controllers and models are mirror images of the ones that work on site one, adjusted for db names only(form fields are the same)

Thanks in advance


Messages In This Thread
POST Question - by El Forum - 04-20-2010, 06:39 PM
POST Question - by El Forum - 04-20-2010, 07:50 PM
POST Question - by El Forum - 04-20-2010, 08:07 PM
POST Question - by El Forum - 04-20-2010, 08:19 PM
POST Question - by El Forum - 04-20-2010, 08:28 PM
POST Question - by El Forum - 04-20-2010, 08:32 PM
POST Question - by El Forum - 04-20-2010, 08:38 PM
POST Question - by El Forum - 04-21-2010, 01:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB