Welcome Guest, Not a member yet? Register   Sign In
where to put the css in a CI3 generated form?
#3

(This post was last modified: 04-17-2021, 12:13 PM by richb201.)

Instead of using the CI3 generated form, I switched over to include the form in a template.  Now I can get the nice form I wanted. 

Now I am battling with the $_POST and also validation. I'd like to use CI3's form validation rules. Not sure if I can in this "bastardized" form. 

I have set the submit to go to a method  in the controller:

<form action="/index.php/Users_start_login/get_email" method="post">

and i do see the $_POST. I'd like to make sure it is a valid form of an email with:

$this->form_validation->set_rules('email', 'Email', 'required|valid_email);

before I check to see if it is sent to my authentication tool. 

One idea is to use:
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {

  $emailErr = "Invalid email format";
}
proof that an old dog can learn new tricks
Reply


Messages In This Thread
RE: where to put the css in a CI3 generated form? - by richb201 - 04-17-2021, 12:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB