Welcome Guest, Not a member yet? Register   Sign In
Trying to make a contact us form for a website, help.
#1

[eluser]Imman Kant[/eluser]
I'm trying to make a contact us form for a website, the problem is I am getting this error message when I link in my controller file to the contact us pages. Any help, can anyone tell me why it is coming like this?
If it is possible, can someone send me a link or something that can help me make a contact us form successfully. Thanks in advance.

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
09-05-2013 18:21:02
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
#2

[eluser]jairoh_[/eluser]
the action url in your form was not found. if u can, pls post ur code
#3

[eluser]Imman Kant[/eluser]
The controller file is as follows(welcome.php)
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller {

public function index()
{
  $this-> load-> view ('template/header');
        $this-> load-> view ('template/banner');
        $this-> load-> view ('BodyTemp/Bodywrap');
        $this-> load-> view ('template/footer');
  }
  public function contact()
  {
   $this-> load-> view('template/header');
   $this-> load-> view('BodyTemp/Bodywrap');
   $this-> load-> view ('template/footer');
   }
  
  }
?>
This is the views-> template-> Main.php file that I created
Code:
<?php
$this-> load-> view ('template/header');
$this-> load-> view ('template/banner');
$this-> load-> view ($Bodywrap);
$this-> load-> view ('template/footer');
?>

Should I postt the header, footer and the banner files as well?




Theme © iAndrew 2016 - Forum software by © MyBB