Page 1 of 1

limited to 200 chars? How to make it more ?

Posted: Sun Nov 27, 2005 8:19 pm
by kath
Hi :-) I tried to fix it in addlink.php

---------------------------------------------------------------

Code: Select all

if (empty($_REQUEST['description'])) {myerror("Please enter description of your site!");} else {$description=htmlspecialchars("$_REQUEST[description]");}
if(strlen($description)>200) {myerror("Description is too long! Description of your website is limited to 200 chars.");}
----------------------------------------------------------------------------------

Am I right ? But it doesn t work anyway :-( What else can I do ?

Thanks in advance

Posted: Sun Nov 27, 2005 9:35 pm
by Klemen
Hi,

You have to edit:

1. in addlink.php the code you already mentioned

(strlen($description)>200)

2. in form.htm change the maxlength setting for description field:

<input type="text" name="description" maxlength="200" size="50">

That should do it.

Regards