Welcome Guest, Not a member yet? Register   Sign In
Form helper - novalidate
#4

(This post was last modified: 01-04-2021, 08:42 PM by yehanny.)

Hi, to do that you can pass your attributes to the form as an array like this:


PHP Code:
<?php $attributes = array('name' => 'answer_add''autocomplete' => 'off''class' => 'needs-validation''novalidate' => 'novalidate'); ?>
<?php $hidden 
= array('_user' => $session['user_id']); ?>
<?php 
echo form_open_multipart('answer/add'$attributes$hidden); ?>


The result should be something like this:

Code:
<form action="http://your-url/index.php/answer_add" name="answer_add" autocomplete="off" class="needs-validation" novalidate="novalidate" enctype="multipart/form-data" method="post" accept-charset="utf-8">
Reply


Messages In This Thread
Form helper - novalidate - by Nome - 06-26-2018, 11:07 AM
RE: Form helper - novalidate - by php_rocs - 06-26-2018, 12:16 PM
RE: Form helper - novalidate - by Nome - 06-26-2018, 12:54 PM
RE: Form helper - novalidate - by yehanny - 01-04-2021, 08:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB