error handling

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
hamidi
Posts: 3
Joined: Wed Feb 29, 2012 7:22 am

error handling

Post by hamidi »

Script URL: http://www2.intranetupe.gov.my/
Version of script: 2.2
Hosting company: MDEC
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: Error Handling on Custom Field.

Write your message below: i have created a few of question using custom field that provided by hesk22. but the problem, i need to have an error handling (because im using select box as an option, user need to provide which unit they working for). the error message should appear when user choose "please choose" i have a couple of answer like "please choose","ICT", "Finance", "Human Resource"). please help..
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: error handling

Post by Klemen »

Rather than creating a category named "please select" you need to create an option with no value for that.

In index.php change this code

Code: Select all

<select name="'.$k.'" '.$cls.'>
to

Code: Select all

<select name="'.$k.'" '.$cls.'>
<option value=""> - Please select - </option>
Then 7 lines below that code delete

Code: Select all

strlen($k_value) == 0 || 

You need to do both of above twice in the index.php file.
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
hamidi
Posts: 3
Joined: Wed Feb 29, 2012 7:22 am

Re: error handling

Post by hamidi »

Dear Klemen,

Thanks for helping me. i discovered and already fixed the bug. thanks for your helping. really appreciate it
Post Reply