Posted by Lau Lauritzen on 03/30/06 13:57
Hope there is someone out there how can help me.
I got a small problem, as you will properly see i'm a newbi.
I'm running php 5.1.2 and apacheserver 2.0.55 on a winxp installation.
The following code is not displaying anything in the browser:
<?php
if($form_errorlist): ?>
Please correct the following errors:<BR>
<UL>
<?php foreach($form_errors as $val): ?>
<LI><?=$val?> // Here is the problem
<?php endforeach; ?>
</UL>
<?php endif; ?>
I have changed the above code to the follow code, and it works, how come the
above don't?
<?php
/* Display any errors that occured during validation */
if($form_errorlist): ?>
Please correct the following errors:<BR>
<UL>
<?php foreach($form_errors as $val): ?>
<LI><?php echo "$val" // Here i changed?>
<?php endforeach; ?>
</UL>
<?php endif; ?>
Best regards
Navigation:
[Reply to this message]
|