Toon posts:

[php, dhtml] problemen met review

Pagina: 1
Acties:
  • 33 views sinds 30-01-2008

Verwijderd

Topicstarter
ik heb wat gemaakt om een preview te maken, dit werkt wel maar als ik main.html voor het eerst open, geeft hij een foutmelding dat $editfield undefined is. dat is ook niet zo raar, aangezien daar <?php echo($editfield)?> staat. Weet iemand hoe ik dit kan oplossen?

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
main.html:

<FORM METHOD=POST enctype="mutlipart/form-data" ACTION="preview.php">

<textarea cols="200" rows="20" name="editfield" id="editfield"><?php echo($editfield) ?></textarea>

<input type="submit" value="preview">

</FORM>



preview.php:


<FORM METHOD=POST enctype="mutlipart/form-data" ACTION="main.html">

<table height="*" width="500" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td width="5">&nbsp</td>    
        <td width="495"><font style="font-weight:bold;font-size:9pt">Preview:</font></td>
    </tr>
    <tr>
        <td width="5" height="100%">&nbsp</td>
        <td width="495" height="100%"><?php echo($editfield) ?></td>
    </tr>
</table>

<textarea cols="200" rows="20" name="editfield" id="editfield"><?php echo($editfield) ?></textarea>

<input type="submit" value="terug">

</FORM>

  • crisp
  • Registratie: Februari 2000
  • Laatst online: 22:06

crisp

Devver

Pixelated

isset() en lees ook eens iets over globals

verder: verkeerde forum en te basic voor Programming & Webscripting

Intentionally left blank


Dit topic is gesloten.