modifyalb.php modifyalb.php
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

modifyalb.php

Started by AfroJoJo, December 12, 2006, 06:56:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AfroJoJo

Does anyone know how to set a maxlength on the album title. I looked in modifyalb.php and can't figure it out. Any ideas?

AfroJoJo

I figured out how to change it in the albmgr.php, but still can't figure it out in modifyalb.php. I need a maxlength in both of these because if there is a maxlength in one and not the other then it doesnt do any good. They could just make the album title longer in the one that doesnt have a maxlength set.

AfroJoJo

Ok, I figured it out. Im an idiot. Dont make fun of me.  :'(

Joachim Müller

You might want to post your changes for the benefit of others.

AfroJoJo


function form_input($text, $name)
{
    global $ALBUM_DATA;

    $value = $ALBUM_DATA[$name];

    echo <<<EOT
        <tr>
            <td width="40%" class="tableb">
                        $text
        </td>
        <td width="60%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="$name" value="$value" class="textinput" maxlength="40"/>
                </td>
        </tr>

I just added a maxlength to the <input>. So simple, yet it took me so long to figure out. Deserves another crying face - :'(