post method doesn´t work |
[eluser]topostangry[/eluser]
Hello i used the codeigniter 2.1.4 version i have done a <form> with method post but it doesn´t work, i have already been trying it 5 days please help me.with get method works well. I have test it with the raw code of codeigniter and a simple form with only one input but is the same case, it doesn´t work. i have remove the index.php with the .htacces controllers: welcome: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); singUp: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); views: welcome_message: with the form Code: <!DOCTYPE html>
[eluser]noideawhattotypehere[/eluser]
fix your class name: Code: class Signup extends CI_Controller { then in your view Code: <?php echo form_open('signup/validate');?> Code: <form acti method="post">
[eluser]topostangry[/eluser]
[quote author="noideawhattotypehere" date="1383154763"]fix your class name: Code: class Signup extends CI_Controller { then in your view Code: <?php echo form_open('signup/validate');?> Code: <form acti method="post"> no it doesnt work, and i have load the form helper i am using wampserver thank you for your attention
[eluser]Tpojka[/eluser]
That code will require url helper loaded. Also load constructor method: Code: public function __construct()
[eluser]topostangry[/eluser]
[quote author="Tpojka" date="1383157413"]That code will require url helper loaded. Also load constructor method: Code: public function __construct() i have added contructors in controllers and i have loaded url and form helpers in autoload it doesnt work
[eluser]topostangry[/eluser]
i have tried with xammp and it works, my xammp php version is php 5.2, i think that the problem is the wampserver because in newest versions and last versions it doesnt work
[eluser]Tpojka[/eluser]
Try with school example of form validation. Don't forget to load form_validation library. Good luck and set us know if worked.
[eluser]topostangry[/eluser]
Hello peple, i have a conclusion about this the proble is that codeigniter 2.1.4 has compatibility problems with php5.3,5.4 xamm(php 5.4, 5.3) doesnt work wamp(php 5.4, 5.3) doesnt work xammp(php5.2) it works wamp(php5.2) it works post method withouth codeigniter works in all versions thank you for your atention
[eluser]InsiteFX[/eluser]
I' am running PHP 5.3 with Xampp and post works fine, so your problem is in your coding. Also you should always give your form inputs an id="user" This uses Twitter Bootstrap 3.0 but should give you an idea. Code: <div class="col-lg-3"></div> |
Welcome Guest, Not a member yet? Register Sign In |