Echo & PHP

Gestart doorDigital1 reacties63 weergaven

2 berichten · pagina 1 van 1

Digital

Lid · Topicstarter

Berichten
326
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoe kan je php toch laten werken. Wanneer je een echo doe?

Want
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$form[/COLOR][COLOR= #007700]->[/COLOR]value[COLOR= #007700]([/COLOR][COLOR= #DD0000]"user"[/COLOR][COLOR= #007700]);[/COLOR] ?>


&
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$form[/COLOR][COLOR= #007700]->[/COLOR]value[COLOR= #007700]([/COLOR][COLOR= #DD0000]"pass"[/COLOR][COLOR= #007700]);[/COLOR] ?>


moeten blijven werken als input field.

Code :

echo "<form action="process.php" method="POST"> 
<table align="left" border="0" cellspacing="0" cellpadding="2">
<tr><td>Username:</td><td><input type="text" name="user" maxlength="30" value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$form[/COLOR][COLOR= #007700]->[/COLOR]value[COLOR= #007700]([/COLOR][COLOR= #DD0000]"user"); ?>"></td><td><?php echo $form->error("user"); ?></td></tr>
<tr><td>Password:</td><td><input type="password" name="pass" maxlength="30" value="<?php echo $form->value("pass"); ?>"></td><td><?php echo $form->error("pass"); ?></td></tr>
<tr><td colspan="2" align="left"><input type="checkbox" name="remember" <?php if($form->value("remember") != ""){ echo "checked"; } ?>>
<font size="2">Remember me next time     
<input type="hidden" name="sublogin" value="1">
<input type="submit" value="Login"><INPUT TYPE="BUTTON" VALUE="Passwoord vergeten" ONCLICK="window.location.href=forgotpass.php"></td></tr>
<tr><td colspan="2" align="left">&nbsp;</td><td align="right"></td></tr>
<tr><td colspan="2" align="left">&nbsp;</td>
</tr>
</table>
</form>"[/COLOR][COLOR= #007700];[/COLOR]
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Dit is een stuk netter:

<form action="process.php" method="POST"> 
<table align="left" border="0" cellspacing="0" cellpadding="2">
    <tr>
        <td>Username:</td>
        <td>
            <input type="text" name="user" maxlength="30" value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$form[/COLOR][COLOR= #007700]->[/COLOR]value[COLOR= #007700]([/COLOR][COLOR= #DD0000]"user"[/COLOR][COLOR= #007700]);[/COLOR] ?>">
        </td>
        <td>
            [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$form[/COLOR][COLOR= #007700]->[/COLOR]error[COLOR= #007700]([/COLOR][COLOR= #DD0000]"user"[/COLOR][COLOR= #007700]);[/COLOR] ?>
        </td>
    </tr>
    <tr>
        <td>Password:</td>
        <td>
            <input type="password" name="pass" maxlength="30" value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$form[/COLOR][COLOR= #007700]->[/COLOR]value[COLOR= #007700]([/COLOR][COLOR= #DD0000]"pass"[/COLOR][COLOR= #007700]);[/COLOR] ?>">
        </td>
        <td>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$form[/COLOR][COLOR= #007700]->[/COLOR]error[COLOR= #007700]([/COLOR][COLOR= #DD0000]"pass"[/COLOR][COLOR= #007700]);[/COLOR] ?></td>
    </tr>
    <tr>
        <td colspan="2" align="left">
            <input type="checkbox" name="remember" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$form[/COLOR][COLOR= #007700]->[/COLOR]value[COLOR= #007700]([/COLOR][COLOR= #DD0000]"remember"[/COLOR][COLOR= #007700]) !=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]){[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"checked"[/COLOR][COLOR= #007700]; }[/COLOR] ?>>
            <font size="2">Remember me next time     
            <input type="hidden" name="sublogin" value="1">
            <input type="submit" value="Login"><INPUT TYPE="BUTTON" VALUE="Passwoord vergeten" ONCLICK="window.location.href=forgotpass.php">
        </td>
    </tr>
    <tr>
        <td colspan="2" align="left">&nbsp;</td>
        <td align="right"></td>
    </tr>
    <tr>
        <td colspan="2" align="left">&nbsp;</td>
    </tr>
</table>
</form>
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren