• User

    nessuno mi aiuta????

    ciao a tutti,
    ascoltate ho provato a inserire un form nel mio sito, che mi serve per registrare i clienti, solamente che non mi funziona, ossia mi appare la scritta seguente:

    Notice: Undefined variable: captched in c:\programmi\easyphp1-8\www\web\form\index.php on line 61

    un po' per tutto il form,ossia mi da errore nelle righe name society, url, description. in poche parole il form è composto d:
    name society
    url (dove è possibile modificare il font, tipo grande, piccolo..ecc)
    description

    io vi allego lo script del form che ho installato, se mi potete correggere eventuali errori visto che non son molto pratico:

    <form method="post" onsubmit="return checkform();">
    NAME SOCIETY<br><input name="tag" id="tag" size="60" maxlength="20" value="<?php if ($captched=='failed') echo htmlentities($HTTP_POST_VARS['tag'], ENT_QUOTES, 'UTF-8');?>" onkeyup="preview();"><br>
    SITE URL<br><input name="url" size="60" maxlenght="255" value="<?php if ($captched=='failed') echo htmlentities($HTTP_POST_VARS['url'], ENT_QUOTES, 'UTF-8');?>" onkeyup="preview();"><br><br>
    <select name="size" id="size" onchange="preview();">
    <option value="14" <?php if ($captched=='failed') if ($HTTP_POST_VARS=='14') echo 'selected'; ?>>Small size</option>
    <option value="18" <?php if ($captched=='failed') if ($HTTP_POST_VARS=='18') echo 'selected'; ?>>Medium size</option>
    <option value="21" <?php if ($captched=='failed') if ($HTTP_POST_VARS=='21') echo 'selected'; ?>>Large size</option>
    <option value="25" <?php if ($captched=='failed') if ($HTTP_POST_VARS=='25') echo 'selected'; ?>>JUMBO size</option>
    </select>
    <input type="checkbox" name="b" id="b" onclick="preview();" <?php if ($captched=='failed') if ($HTTP_POST_VARS['b']=='on') echo 'checked'; ?>><span style="font-weight: bold">Bold</span>
    <input type="checkbox" name="i" id="i" onclick="preview();" <?php if ($captched=='failed') if ($HTTP_POST_VARS['i']=='on') echo 'checked'; ?>><span style="font-style: italic">Italic</span>
    <input type="checkbox" name="ol" id="ol" onclick="preview();" <?php if ($captched=='failed') if ($HTTP_POST_VARS['ol']=='on') echo 'checked'; ?>><span style="text-decoration: overline">Overline</span>
    <input type="checkbox" name="ul" id="ul" onclick="preview();" <?php if ($captched=='failed') if ($HTTP_POST_VARS['ul']=='on') echo 'checked'; ?>><span style="text-decoration: underline">Underline</span><br><br>
    DESCRIPTION (up to 70 characters)<br>
    <input name="alt" size="60" maxlength="70" value="<?php if ($captched=='failed') echo htmlentities($HTTP_POST_VARS['alt'], ENT_QUOTES, 'UTF-8');?>" onkeyup="preview();"><br><br><br>
    <input type="submit" value="Submit">


  • User Attivo

    In pratica lo script si aspetta che gli venga passata la variabile $captched...
    E controlla se il valore e' 'failed'...
    prova a settarla 'failed' o 'true' prima della form e vedi cosa succede
    $captched='failed';


  • User

    no, niente non funziona......

    nessun'altro che mi risolva questo problema???