[SOLVED] check default character fields controllo campi default

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
serpe76
Posts: 3
Joined: Thu Mar 22, 2018 10:46 am

[SOLVED] check default character fields controllo campi default

Post by serpe76 »

Script URL: Localhost
Version of script: 2.7.6
Hosting company: personal
URL of phpinfo.php: 5.7
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

sorry for my language, how can I change the minimum text to be inserted in the client head, I would like more than 10 characters to be stranded

é possibile inserire un controllo per la lunghezza minima nel campo clienet ? grazie
Last edited by serpe76 on Fri Apr 06, 2018 7:27 pm, edited 1 time in total.
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Re: check default character fields controllo campi default

Post by Klemen »

Unfortunately I do not understand what you mean, can you please describe with examples?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
serpe76
Posts: 3
Joined: Thu Mar 22, 2018 10:46 am

Re: check default character fields controllo campi default

Post by serpe76 »

Image

Vorrei poter inserire un controllo per un minimo di caratteri da inserire nel campo nome


I would like to be able to insert a check for a minimum of characters to insert in the name field
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Re: check default character fields controllo campi default

Post by Klemen »

There is no built-in way of doing it, you will need to modify the source code to achieve this.

For example, in submit_ticket.php you would find code

Code: Select all

$tmpvar['name']	 = hesk_input( hesk_POST('name') ) or $hesk_error_buffer['name']=$hesklang['enter_your_name'];
and just below that add something like

Code: Select all

if (strlen($tmpvar['name']) < 6)
{
    $hesk_error_buffer['name'] = 'Name must have at least 6 characters';
}
Similar for other fields; if you need help finding and modifying the correct code I recommend hiring a PHP developer for help.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
serpe76
Posts: 3
Joined: Thu Mar 22, 2018 10:46 am

Re: check default character fields controllo campi default

Post by serpe76 »

Grazie , risolto
Post Reply