php - how to allow to enter special characters in text field in laravel

7

I have text field with name of account number but it enter only numbers digit I want to write special characters as well like-,/ in text field.

This is my form:

<?php if($user->userAccountNumber != "") {?>
  <div >
    <label for="userAccountNumber">Číslo úÄtu</label>
    {{ Form::text('userAccountNumber', $user->userAccountNumber, ['class'=>'form-control only-integer','id'=>'userAccountNumber','disabled']) }}
  </div>
  <?php }else{ ?>
  <div >
    <label for="userAccountNumber">Číslo úÄtu</label>
    {{ Form::text('userAccountNumber', $user->userAccountNumber, ['class'=>'form-control only-integer','id'=>'userAccountNumber']) }}
  </div>

<?php }?>

Please can anyone help to enter special characters into my this text field. Help will be highly appreciated!

379

Answer

Solution:

Its to do with the security settings in laravel it's self. Why did you want special character's as hackers use them to access the data base?

People are also looking for solutions to the problem: javascript - Laravel product filter with checkboxes

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.