Welcome Guest, Not a member yet? Register   Sign In
Problem with form submit
#11

[eluser]bogdan3l[/eluser]
Can you show me how your view with the form looks like(exactly)?
#12

[eluser]stingray9[/eluser]
Code:
<div id="content">
    
        <h1>Admin</h1>
      
        
       &lt;form method="post" action="&lt;?php echo base_url(); ?&gt;admin/"&gt;
                            
                <label>Kleur titel:</label>
                &lt;?php echo '<span style="font-size:12px;">' . form_error('kleurtitel') . '</span>'; ?&gt;
                &lt;input value="&lt;?php echo set_value('kleurtitel'); ?&gt;" id="kleurtitel" size='6' name="kleurtitel"&gt;&lt;br />

                &lt;input type="submit" name="save" id="save" value="Save"&gt;
    &lt;/form&gt;
      
    </div>
#13

[eluser]bogdan3l[/eluser]
Everything works fine at me.

I tried different things but that kind of URL I get only when I change method="post" with method="get".

In .htaccess I have:

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
#14

[eluser]bogdan3l[/eluser]
Your controller looks exactly like the one you post it?
#15

[eluser]stingray9[/eluser]
[quote author="ci_the_best" date="1297033496"]Your controller looks exactly like the one you post it?[/quote]

Yep, same for my .htaccess
Thanks for your help btw.

I'll download codeigniter again and write it again with the scripts i posted here. (as it works for you)
#16

[eluser]bogdan3l[/eluser]
No problem and you still get that URL?
#17

[eluser]bogdan3l[/eluser]
If your controller it is exactly like that than you have a problem.

For CodeIgniter 2.0.0 you should have something like this:

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

class Admin extends CI_Controller {

function __construct()
{
parent::__construct();
}

function index()
{
// your code will be here
}
}
#18

[eluser]stingray9[/eluser]
Well, i have that, i tought i copied that too^^

But i downloaded it again, wrote those scripts again and now it works..
I really don't understand it.. Smile

Thanks anyway!
#19

[eluser]bogdan3l[/eluser]
I'm glad then. No problem. Bye
#20

[eluser]Roy MJ[/eluser]
I had the same problem and i completely deleted the files and uploaded what i had in my system and it worked fine.. But the fact remains what i had in my system was a mere backup of the files in server... Really wierd....




Theme © iAndrew 2016 - Forum software by © MyBB