site_url() and ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: site_url() and ? (/showthread.php?tid=42206) |
site_url() and ? - El Forum - 05-30-2011 [eluser]nanetorg[/eluser] Hi. I cannot resolve my problem with CI 2.0.2 and helper URL. When i use: Code: $data['mail'] = site_url('contact'); Code: http://127.0.0.1/test/?contact Code: http://127.0.0.1/test/contact Where is the problem? Why i have '?' before anything i pass to this function? My config is simple: Code: $config['base_url'] = ''; Thanks. site_url() and ? - El Forum - 05-31-2011 [eluser]nanetorg[/eluser] Still working on this... can anyone help? site_url() and ? - El Forum - 05-31-2011 [eluser]InsiteFX[/eluser] If your trying setup an email contact then your doing it all wrong! Is that what your trying to setup an email contact? InsiteFX site_url() and ? - El Forum - 05-31-2011 [eluser]nanetorg[/eluser] Controller: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); View: Code: <form id="contact_form" method="post" action="<?=$mail?>"> Is working like that... site_url() and ? - El Forum - 05-31-2011 [eluser]patwork[/eluser] Try changing uri_protocol. Code: /* site_url() and ? - El Forum - 05-31-2011 [eluser]nanetorg[/eluser] Does not work, still has this problem... My server configuration is: + Apache 2.2.14 (IPV6 enabled) + MySQL 5.1.41 (Community Server) with PBXT engine 1.0.09-rc + PHP 5.3.1 (PEAR) + Miniperl 5.10.1 + OpenSSL 0.9.8l + phpMyAdmin 3.2.4 + Ming 0.4.3 for PHP site_url() and ? - El Forum - 06-01-2011 [eluser]danmontgomery[/eluser] Sounds like you have query strings enabled: Code: $config['enable_query_strings'] = FALSE; |