You are here: PHP/HTML « All PHP « IT news, forums, messages
PHP/HTML

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация