Problem with Form Validation and Htaccess file |
[eluser]InsiteFX[/eluser]
Ok, well that tells us that you are not getting the post data from the form. Try giving the input submit a name. Code: <input name="my_submit" type="submit" value="Log In"/> Also try replace the $_POST with this Code: var_dump($this->input->post(NULL, TRUE)); // returns all POST items with XSS filter
[eluser]InsiteFX[/eluser]
Another thing to try Code: public function ProcessLogin() {
[eluser]DavidHopkins[/eluser]
Nope just get a Quote:bool(false) I was just testing some things out and created a simple html form that posted data to a php file which would echo it and that worked fine, it passed the information across ok. As a process of elimination i think its gotta be the htaccess file doing something odd, because Post data works on my server just fine without it but as soon as its turned on, it all breaks down. Really odd...
[eluser]InsiteFX[/eluser]
rename it to sav.htaccess and add the index.php back in and see if it works, if its the .htaccess file it should be an easy fix.
[eluser]DavidHopkins[/eluser]
Yep works without the htaccess file and with the index.php back in, but i get the horrible http://domain.co.uk/index.php/login/ProcessLogin which i want to avoid Dave
[eluser]InsiteFX[/eluser]
Try removing the ? Code: <IfModule mod_rewrite.c> You might try removing the RewriteBase / also
[eluser]DavidHopkins[/eluser]
thank you ever so much it works ! Three days of pulling my hair out all for a ? Cheers man your help has been most useful ! Dave
[eluser]InsiteFX[/eluser]
Your very welcome, The ? was used for php4 Here is My .htaccess file Code: <IfModule !mod_rewrite.c>
[eluser]DavidHopkins[/eluser]
Sorry to be a fool, i forgot to remove the indx.php in the config Its still not working =[ Tried removing the rewrite base aswell Dave
[eluser]InsiteFX[/eluser]
I have to eat now but will be back on a little later. Play around with your .htaccess file and links that seems to be the problem |
Welcome Guest, Not a member yet? Register Sign In |