Hoe kan je php toch laten werken. Wanneer je een echo doe?
Want
&
moeten blijven werken als input field.
Code :
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"> </td><td align="right"></td></tr>
<tr><td colspan="2" align="left"> </td>
</tr>
</table>
</form>"[/COLOR][COLOR= #007700];[/COLOR]