![]() |
Store form data in database and email it to email address x - 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: Store form data in database and email it to email address x (/showthread.php?tid=27479) Pages:
1
2
|
Store form data in database and email it to email address x - El Forum - 02-28-2010 [eluser]rhand_ci[/eluser] Strange. Decided to continue working on the form and so on today. Now when I try to open localhost/ci/rentalform/ or localhost/ci/rentalform.php I get an ugly 404 Code: The requested URL /ci/rentalform was not found on this server Code: [Sun Feb 28 12:47:36 2010] [error] [client ::1] File does not exist: /opt/local/apache2/htdocs/ci/rentalform/ Store form data in database and email it to email address x - El Forum - 02-28-2010 [eluser]rhand_ci[/eluser] Never mind. Forgot I had to use this path: http://localhost/ci/index.php/rentalform including index.php . Will read http://ellislab.com/codeigniter/user-guide/general/urls.html so I no longer need to add index.php . Store form data in database and email it to email address x - El Forum - 02-28-2010 [eluser]rhand_ci[/eluser] I added Code: RewriteEngine on to a new .htaccess. Still http://localhost/ci/rentalform/index.php gives me a non CI error: The requested URL /index.php/rentalform/index.php was not found on this server. while http://localhost/ci/index.php/rentalform/index.php gives me a CI 404 and http://localhost/ci/index.php/rentalform/ gives me the form with broken styling.. Odd. But then I checked the pache error log and decided to use this .htaccess: Code: RewriteEngine on And now I can reach http://localhost/ci/rentalform/ :-) Now I only need the stylesheet loaded with Code: <link href="<?=base_url()?>style.css" rel="stylesheet" type="text/css"> Store form data in database and email it to email address x - El Forum - 02-28-2010 [eluser]rhand_ci[/eluser] Code: RewriteEngine on Did the trick to make the style.css to load properly. Store form data in database and email it to email address x - El Forum - 02-28-2010 [eluser]rhand_ci[/eluser] Now I need index.php droppped in the middle of http://localhost/ci/index.php/auth/login as well Code: RewriteEngine on with Code: auth\/login but this does: Code: <IfModule mod_rewrite.c> Found it at Code Igniter Wiki |