- Home
- Categorie
- Coding e Sistemistica
- PHP
- form che non funziona
-
form che non funziona
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, 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>
FONT COLOR<br>
<?php color_picker('preview();',(($captched=='failed') ? htmlentities($HTTP_POST_VARS) : '000000')); ?><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">
-
Praticamente ti dice che la variabile captched non è stata definita.
Cosa c'è alla riga 61?
Postalo tutto lo script .... altrimenti non ti possiamo aiutare.
-
alla riga 61, corrisponde NAME SOCIETY...ecc.(come scritto sotto nel post vecchio)
lo script e tutto quello che ho inserito. è completo.
-
nessuno mi puo aiutare!!!!!!!!!!!???????????????