CodeIgniter Forums
submit button not redirecting - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: submit button not redirecting (/showthread.php?tid=63520)

Pages: 1 2


RE: submit button not redirecting - Martin7483 - 11-12-2015

I have tested your code and it works.

Quote:helloyour mail was sent

is displayed after I hit the submit button.

Does your browser do anything when you hit submit? Does it start to load?
Do you have this in a htaccess file?
Code:
#Rule for routing all page requests through index.php
RewriteCond $1 !^(index\.php|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

And your config set to this?
PHP Code:
// Set the protocol
$protocol 'http://';
if ( isset( 
$_SERVER["HTTPS"] ) && strtolower$_SERVER["HTTPS"] ) == "on" ) {
    
$protocol 'https://';
} else {
    
$_SERVER['HTTPS'] = 'off';
}
// Set the base_url
$config['base_url'] = $protocol.$_SERVER['HTTP_HOST'];

// Index File
$config['index_page'] = ''// Blank so index.php is not added to generated URLs 

What does your post url look like in your page source?

When all fails retry with a fresh install of CodeIgniter.

Good luck!


RE: submit button not redirecting - pallu.hegde93 - 11-17-2015

No it doesnt do any thing when i hit the submit buttonSad
when i try the send menthod separately it works.
but when i hit submit it doesnt load or anything.

I even downloaded CI again and tried but the same problem Sad