Welcome Guest, Not a member yet? Register   Sign In
Post Forms without validation
#1

[eluser]PHP Creative[/eluser]
Hi there

How do you post a form without validation?

For example I have a form on the first page and when submitted it goes to another form on the second page but somehow the validation checks on the second form are activated when the first is posted. Any ideas?

Thanks a million.
#2

[eluser]stuffradio[/eluser]
We need more information, like code you are using in your controller for submitting it and where it's submitting to.
#3

[eluser]PHP Creative[/eluser]
Code:
<?

$this->load->library('validation');
                                                                
$rules['field1'] = "required";
$rules['field2'] = "required";

$this->validation->set_rules($rules);
                                                                        
if ($this->validation->run() == FALSE)
{
    $this->load->view('site_template/header');
    $this->load->view('form2');
    $this->load->view('site_template/footer');
}
else
{

///do stuff here

}    
?>
#4

[eluser]Unknown[/eluser]
I had a similar issue to summer students. I’m making a registration form. When the user has typed his information and signed up I want a new page to show the info he typed for confirmation. I hope to see problem fixed soon. THX
#5

[eluser]Thorpe Obazee[/eluser]
[quote author="PHP Creative" date="1247364078"]Hi there

How do you post a form without validation?

For example I have a form on the first page and when submitted it goes to another form on the second page but somehow the validation checks on the second form are activated when the first is posted. Any ideas?

Thanks a million.[/quote]

If you don't want the validation, then don't use it.

When you pass data to the second page, you can always use $_POST or $this->input->post().




Theme © iAndrew 2016 - Forum software by © MyBB