View Single Post
Old August 13th, 2005, 11:44 AM   #1 (permalink)
Luciano
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
little problem with custom fields

I seem to get a an error when i use a required custom field.

I have a multiple options, multiple choices custom checkbox field

I set it to required.

the user shood specify if the pic contains nudity or not (for over 18 gallery)

if the users clicks a checkbox and uploads... everything is ok...

if he forgets to check one box and uploads.. the pic is still uploaded (it shouldn't as the field is required) and the page has following error:

Parse error: parse error, unexpected T_STRING in /home/sunmodn/public_html/vb/vb/includes/functions_gallery_imageedit.php(470) : eval()'d code on line 1

did I do something wrong???
________________
Edit:
actually the error line is:
Code:
Content visible to verified customers only.
also i get following error in upload.php
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /gallery/upload.php on line 362
ok.. its only a warning

the line is:
Code:
Content visible to verified customers only.
hmmm... isnt fieldid supposed to be a number and not a string????

Luc
Luciano is offline