• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
404 'url fom/index' not found on server error

#1
[eluser]fourcs[/eluser]
I keep getting this 404 error. Can't find the reason.
This is a snippet of the form_view file.
Code:
<h3 class='headerstyle'>Registration Form</h3>
<p>Please complete the following form:</p>

&lt;?php echo $this->validation->error_string; ?&gt;
&lt;?php echo form_open('form/index'); ?&gt;

  <p><label for="username">Username: </label><br />&lt;?php echo form_input($username); ?&gt;</p>
  <p><label for="password">Password: </label><br />&lt;?php echo form_input($password); ?&gt;</p>
  <p><label for="name">Name: </label><br />&lt;?php echo form_input($name); ?&gt;</p>
  <p><label for="address">Address: </label><br />&lt;?php echo form_input($address); ?&gt;</p>
  <p><label for="city">City: </label><br />&lt;?php echo form_input($city); ?&gt;</p>
  <p><label for="state">State: </label><br />&lt;?php echo form_input($state); ?&gt;</p>
  <p><label for="zipcode">Zipcode: </label><br />&lt;?php echo form_input($zipcode); ?&gt;</p>
  <p><label for="phone">Phone: </label><br />&lt;?php echo form_input($phone); ?&gt;</p>
  <p><label for="email">Email: </label><br />&lt;?php echo form_input($email); ?&gt;</p>
  <p><label for="url">URL: </label><br />&lt;?php echo form_input($url); ?&gt;</p>
  <p><label for="status">Status: </label><br />&lt;?php echo form_input($status); ?&gt;</p>
  <p><label for="dateB">Date Start: </label><br />&lt;?php echo form_input($dateB); ?&gt;</p>
  <p><label for="dateE">Date End: </label><br />&lt;?php echo form_input($dateE); ?&gt;</p>
  
&lt;?php echo form_submit('submit', 'Submit'); ?&gt;
&lt;?php echo form_close(); ?&gt;

I've successfully used similar code and codeigniter config, model, controller, view with a tutorial.
Any ideas will be appreciated.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.