limited to 200 chars? How to make it more ?

Problems installing LinkMan?
Post Reply
kath

limited to 200 chars? How to make it more ?

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
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
Post Reply